/* Agreements page */
.ag-panels .panel { position: relative; overflow: hidden; }
.panel-h { font-size: clamp(26px, 2.4vw, 32px); color: var(--navy); }
.ag-panels .panel p { font-size: 16px; line-height: 1.65; }
.ag-panels .link-arrow { margin-top: 2px; font-size: 17px; min-height: 44px; }
.ag-stat { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.ag-stat b { font-family: var(--font-head); font-weight: 700; font-size: 64px; line-height: .85; color: var(--blue-deep); }
.ag-stat span { font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1.1; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }

/* terms + document centre */
.ag-terms-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ag-terms { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 3vw, 40px); }
.ag-terms-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.ag-terms-head .muted { margin-top: 10px; }
.ag-list { list-style: none; margin: 0; padding: 0; counter-reset: term; }
.ag-list li { counter-increment: term; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px dashed var(--line); font-size: 16px; line-height: 1.6; color: var(--text); }
.ag-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ag-list li::before { content: counter(term, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--blue-deep); }

.ag-docs { position: sticky; top: 96px; background: var(--navy); color: var(--white); border-radius: 16px; padding: clamp(24px, 3vw, 36px); overflow: hidden; isolation: isolate; box-shadow: var(--shadow); }
.ag-docs::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 2px, transparent 2px 22px), radial-gradient(80% 60% at 100% 0%, rgba(79,163,209,.25), transparent 70%); }
.ag-docs .eyebrow { color: var(--blue); }
.ag-docs h2 { margin-top: 10px; font-size: clamp(30px, 3vw, 40px); color: var(--white); }
.ag-doc-list { margin-top: 24px; gap: 12px; }
.ag-doc-list a { min-height: 72px; gap: 16px; padding: 14px 16px; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); color: var(--white); transition: border-color .25s, background .25s, transform .3s var(--ease); }
.ag-doc-list a:hover, .ag-doc-list a:focus-visible { background: rgba(79,163,209,.14); border-color: var(--blue); transform: translateX(4px); }
.ag-doc-list a:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.ag-file { position: relative; flex: none; width: 46px; height: 52px; display: grid; place-items: center; border-radius: 8px; background: var(--white); color: var(--navy); }
.ag-doc-list .ag-file svg { width: 26px; height: 26px; color: var(--navy); margin-top: -8px; }
.ag-file i { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .08em; line-height: 1; padding: 3px 6px; border-radius: 4px; background: var(--rust); color: var(--white); }
.ag-doc-t { display: grid; gap: 3px; min-width: 0; }
.ag-doc-t b { font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.ag-doc-list .ag-doc-t small { margin: 0; font-size: 12px; color: rgba(255,255,255,.65); }
.ag-docs-note { margin-top: 22px; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.75); }
.ag-docs-note .link-inline { color: var(--blue); }
.ag-docs-btn { margin-top: 22px; width: 100%; }

@media (max-width: 980px) {
  .ag-terms-grid { grid-template-columns: 1fr; }
  .ag-docs { position: static; }
}
@media (max-width: 520px) {
  .ag-terms-head { grid-template-columns: 1fr; }
  .ag-list li { grid-template-columns: 34px 1fr; gap: 10px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .ag-doc-list a { transition: none; } .ag-doc-list a:hover { transform: none; } }
