/* Styles scoped to the terms pages; no changes to the application shell. */
.terms-page { --terms-ink: #142d4e; --terms-accent: #3154a1; --terms-line: #dce5ef; max-width: 1160px; margin: 0 auto 3rem; color: #36465a; overflow-wrap: anywhere; }
.terms-page *, .terms-page *::before, .terms-page *::after { box-sizing: border-box; }
.terms-page a { color: var(--terms-accent); text-decoration: underline; text-underline-offset: .18em; }
.terms-page a:hover { color: #18366f; }
.terms-page a:focus-visible, .terms-page summary:focus-visible { outline: 3px solid #3154a1; outline-offset: 4px; border-radius: 3px; }
.terms-page .breadcrumb { margin: 0 0 1.25rem; font-size: .875rem; }
.terms-page .breadcrumb a { text-decoration: none; }
.terms-hero { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--terms-line); border-radius: 20px; background: linear-gradient(120deg, #fff 35%, #eef3fc); }
.terms-eyebrow { color: var(--terms-accent); font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 .75rem; }
.terms-page h1 { color: var(--terms-ink); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; margin: 0 0 1rem; }
.terms-lead { max-width: 64ch; font-size: 1.05rem; line-height: 1.75; margin: 0; }
.terms-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; align-items: center; font-size: .85rem; }
.terms-badge { border: 1px solid #c9d8ed; border-radius: 999px; padding: .35rem .8rem; background: #fff; color: #24457a; font-weight: 600; }
.terms-date { color: #53657d; }
.terms-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 2rem; }
.terms-highlight { padding: 1.1rem 1.25rem; border-radius: 12px; background: #fff; border: 1px solid var(--terms-line); }
.terms-highlight strong { display: block; color: var(--terms-ink); margin-bottom: .35rem; font-size: .95rem; }
.terms-highlight p { margin: 0; font-size: .875rem; line-height: 1.6; }
.terms-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 2rem; align-items: start; }
.terms-layout > nav { position: sticky; top: 85px; }
.terms-index { padding: 1.25rem; border: 1px solid var(--terms-line); border-radius: 14px; background: #fff; max-height: calc(100vh - 110px); overflow-y: auto; }
.terms-index summary { color: var(--terms-ink); font-size: 1rem; font-weight: 700; cursor: pointer; }
.terms-index ol { padding-left: 1.2rem; margin: 1rem 0 0; }
.terms-index li { padding-left: .2rem; margin: 0 0 .65rem; color: #61748c; font-size: .84rem; line-height: 1.5; }
.terms-index li:last-child { margin-bottom: 0; }
.terms-index a { color: #3e526d; text-decoration: none; }
.terms-index a:hover { color: var(--terms-accent); text-decoration: underline; }
.terms-document { min-width: 0; background: #fff; border: 1px solid var(--terms-line); border-radius: 16px; padding: clamp(1.25rem, 3vw, 2.5rem); }
.terms-section { scroll-margin-top: 90px; padding-top: 1.75rem; margin-top: 1.75rem; border-top: 1px solid var(--terms-line); }
.terms-section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.terms-page h2 { color: var(--terms-ink); font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 700; line-height: 1.45; margin: 0 0 1rem; }
.terms-section p, .terms-section li { font-size: .97rem; line-height: 1.85; }
.terms-section p { margin: 0 0 .9rem; }
.terms-section p:last-child { margin-bottom: 0; }
.terms-section ul { margin: 0; padding-left: 1.25rem; }
.terms-section li { padding-left: .2rem; margin-bottom: .65rem; }
.terms-contact { margin-top: 1.75rem; padding: 1.25rem; background: #f2f6fc; border-radius: 12px; }
.terms-contact p { margin: 0 0 .65rem; line-height: 1.6; }
.terms-contact-links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; font-size: .9rem; }
.terms-footnote { margin: 1rem 0 0; color: #53657d; font-size: .8rem; line-height: 1.6; }
@media (max-width: 991.98px) {
 .terms-layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
 .terms-layout > nav { position: static; }
 .terms-index { max-height: none; }
 .terms-index ol { columns: 2; column-gap: 2rem; }
 .terms-index li { break-inside: avoid; }
}
@media (max-width: 575.98px) {
 .terms-hero { border-radius: 14px; }
 .terms-highlights { grid-template-columns: minmax(0, 1fr); gap: .6rem; margin: 1rem 0; }
 .terms-highlight { padding: .9rem 1rem; }
 .terms-index ol { columns: 1; }
 .terms-document { border-radius: 14px; }
 .terms-section p, .terms-section li { font-size: .95rem; line-height: 1.8; }
 .terms-contact-links { flex-direction: column; gap: .75rem; }
}
@media print {
 .header, .sidebar, .footer, .back-to-top, .terms-page .breadcrumb, .terms-index, .terms-highlights, .terms-contact, .terms-footnote { display: none !important; }
 #main.main { margin: 0 !important; padding: 0 !important; }
 .terms-page { max-width: none; margin: 0; color: #111; }
 .terms-hero, .terms-document { background: #fff; border: 0; border-radius: 0; padding: 0; }
 .terms-hero { margin-bottom: 1.5rem; }
 .terms-layout { display: block; }
 .terms-section { border-color: #bbb; }
 .terms-page h2 { break-after: avoid; }
 .terms-section p, .terms-section li { orphans: 3; widows: 3; }
 .terms-page a { color: #111; }
}
