/* Terms of service (/terms, /conditions). Loaded after the shared site styles. */
.terms-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.terms-hero h1 { max-width: 980px; }
.terms-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; max-width: 760px; margin-top: 42px; padding-top: 22px; border-top: 1px solid #5c80934d; font-size: 14px; color: #b5cad8; }
.terms-meta time { color: #e2eff5; }
.terms-meta a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #e2eff5; text-decoration: underline; text-decoration-color: #20b7d680; text-underline-offset: 6px; }
.terms-meta a:hover { color: #20b7d6; }
.terms-print { min-height: 44px; margin-left: auto; padding: 0 18px; border: 1px solid #5c809399; border-radius: 4px; background: transparent; color: #cfe0ea; font: inherit; cursor: pointer; transition: border-color .2s, color .2s; }
.terms-print:hover { border-color: #20b7d6; color: #fff; }
.terms-print[hidden] { display: none; }
.terms-meta a:focus-visible, .terms-print:focus-visible { outline: 2px solid #20b7d6; outline-offset: 4px; }

/* Plain-language summary */
.terms-summary { padding-bottom: 36px; }
.terms-summary-inner { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 2.25fr); gap: clamp(40px, 6vw, 110px); max-width: 1240px; margin: 0 auto; }
.terms-summary-intro h2 { font-size: clamp(38px, 4vw, 58px); }
.terms-summary-intro p { max-width: 280px; margin-top: 20px; color: #4f6d80; font-size: 15px; line-height: 1.7; }
.terms-summary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; margin: 0; padding: 0; list-style: none; }
.terms-summary-list li { padding: 26px 0 32px; border-top: 1px solid #102a43; }
.terms-summary-list h3 { color: #102a43; font-size: clamp(21px, 1.8vw, 25px); font-weight: 500; line-height: 1.22; letter-spacing: -.03em; }
.terms-summary-list p { max-width: 46ch; margin-top: 12px; color: #4f6d80; font-size: 15.5px; line-height: 1.75; }

/* Contents rail and document */
.terms-band { padding: 12px var(--pad) 110px; }
.terms-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); max-width: 1240px; margin: 0 auto; }
.terms-contents { position: sticky; top: 108px; align-self: start; max-height: calc(100vh - 132px); overflow-y: auto; padding-top: 30px; scrollbar-width: thin; }
.terms-contents-toggle { display: none; }
.terms-contents-label { margin-bottom: 14px; color: #102a43; font-size: 13px; font-weight: 600; }
.terms-contents ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid #c0d6e1; }
.terms-contents a { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: baseline; min-height: 36px; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; color: #4f6d80; font-size: 13.5px; line-height: 1.35; transition: color .2s, border-color .2s; }
.terms-contents a > span { color: #54758b; font-variant-numeric: tabular-nums; }
.terms-contents a:hover { color: #102a43; }
.terms-contents a[aria-current="location"] { border-left-color: #20b7d6; color: #102a43; }
.terms-contents a[aria-current="location"] > span { color: #087d6a; }
.terms-contents a:focus-visible, .terms-contents-toggle:focus-visible { outline: 2px solid #20b7d6; outline-offset: 2px; }

.terms-document { max-width: 780px; }
.terms-clause { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0 26px; padding: 44px 0 48px; border-top: 1px solid #c0d6e1; }
.terms-clause:first-child { border-top-color: #102a43; }
.terms-clause-number { color: #96bbcc; font-family: 'Inter Tight', Inter, sans-serif; font-size: 58px; line-height: .86; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.terms-clause h2 { color: #102a43; font-size: clamp(26px, 2.3vw, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -.035em; }
.terms-clause p, .terms-clause li { color: #3f5f73; font-size: 17px; line-height: 1.8; }
.terms-clause p { max-width: 68ch; margin-top: 16px; }
.terms-clause h2 + p { margin-top: 22px; }
.terms-clause ul { margin: 10px 0 4px; padding: 0; list-style: none; }
.terms-clause li { position: relative; max-width: 64ch; margin-top: 8px; padding-left: 28px; }
.terms-clause li::before { content: ""; position: absolute; left: 3px; top: .9em; width: 12px; height: 2px; background: #20b7d6; }

.terms-contact { display: grid; gap: 34px; margin-top: 28px; padding: clamp(28px, 4vw, 48px); border-radius: 8px; background: radial-gradient(ellipse at 100% 0, #1d4f68 0, transparent 62%), #0b1a27; color: #e2eff5; color-scheme: dark; }
.terms-contact h2 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 500; line-height: 1.1; letter-spacing: -.04em; }
.terms-contact-lead p { margin-top: 14px; color: #b5cad8; font-size: 15px; line-height: 1.7; }
.terms-contact .contact-email { margin-top: 20px; border-bottom-color: #20b7d699; color: #fff; font-size: clamp(21px, 2.1vw, 30px); }
.terms-contact .contact-email:hover { color: #20b7d6; }
.terms-contact .contact-email:focus-visible { outline: 2px solid #20b7d6; outline-offset: 6px; }
.terms-company { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; margin: 0; }
.terms-company > div { padding-top: 14px; border-top: 1px solid #5c809359; }
.terms-company dt { color: #8ec8dd; font-size: 12px; }
.terms-company dd { margin: 6px 0 0; color: #e2eff5; font-size: 15px; line-height: 1.6; font-variant-numeric: tabular-nums; }

@media (max-width: 1000px) {
  .terms-summary-inner { grid-template-columns: 1fr; gap: 26px; }
  .terms-summary-intro p { max-width: 560px; }
  .terms-body { grid-template-columns: 1fr; gap: 0; }
  .terms-contents { position: static; max-height: none; overflow: visible; padding-top: 0; }
  .terms-contents.is-enhanced .terms-contents-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0 18px; border: 1px solid #102a43; border-radius: 5px; background: #f7fafa; color: #102a43; font: 500 16px/1 'Inter Tight', Inter, sans-serif; cursor: pointer; }
  .terms-contents-toggle > span { width: 10px; height: 10px; margin-top: -5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
  .terms-contents.is-open .terms-contents-toggle > span { margin-top: 5px; transform: rotate(-135deg); }
  .terms-contents.is-enhanced .terms-contents-label { display: none; }
  .terms-contents.is-enhanced:not(.is-open) ol { display: none; }
  .terms-contents.is-enhanced ol { margin-top: 10px; padding: 6px 0; border: 1px solid #c0d6e1; border-radius: 5px; background: #f7fafa; }
  .terms-contents.is-enhanced a { min-height: 44px; margin-left: 0; padding-left: 16px; border-left: 0; }
  .terms-document { max-width: none; margin-top: 18px; }
}

@media (max-width: 600px) {
  .terms-meta { gap: 6px 24px; margin-top: 32px; }
  .terms-print { margin-left: 0; }
  .terms-summary-list { grid-template-columns: 1fr; }
  .terms-summary-list li { padding: 22px 0 26px; }
  .terms-band { padding-bottom: 70px; }
  .terms-clause { grid-template-columns: 1fr; padding: 34px 0 36px; }
  .terms-clause-number { margin-bottom: 14px; font-size: 40px; }
  .terms-clause h2 { font-size: 27px; }
  .terms-clause p, .terms-clause li { font-size: 16px; line-height: 1.75; }
  .terms-company { grid-template-columns: 1fr; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .terms-contents a, .terms-contents-toggle > span, .terms-print { transition: none; }
}

@media print {
  .site-header, .site-footer, .navigation-dialog, .page-breadcrumbs, .terms-contents, .terms-meta a, .terms-print { display: none !important; }
  body, .light-section, .terms-band { background: #fff !important; color: #000; }
  .page-hero { padding: 0 0 18pt; background: none; color: #000; }
  .page-hero h1, .page-hero h1 em, .page-lead, .terms-meta, .terms-meta time { color: #000; }
  .page-hero h1 { font-size: 30pt; }
  .page-section, .terms-band { padding: 12pt 0; }
  .terms-meta { border-color: #000; }
  .terms-body { display: block; }
  .terms-summary-list li, .terms-clause, .terms-clause:first-child { border-color: #999; }
  .terms-clause { grid-template-columns: 34pt 1fr; padding: 14pt 0; break-inside: auto; }
  .terms-clause h2 { break-after: avoid; }
  .terms-clause-number { font-size: 22pt; color: #666; }
  .terms-clause p, .terms-clause li, .terms-summary-list p { color: #000; font-size: 10.5pt; }
  .terms-contact { background: none; border: 1px solid #000; color: #000; break-inside: avoid; }
  .terms-contact-lead p, .terms-company dt, .terms-company dd, .terms-contact .contact-email { color: #000; }
}
