/* Legal reading layout. All seven original articles are preserved verbatim. */
.legal-header-nav { display: flex; align-items: center; gap: 25px; font-size: 13px; color: #c0c5c8; }
.legal-header-nav a { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; }
.legal-header-nav .icon { width: 13px; height: 13px; }
.legal-hero { padding-block: 35px 63px; }
.legal-back { display: inline-flex; align-items: center; gap: 9px; color: #a9b1b6; font-size: 12.5px; min-height: 44px; margin-bottom: 34px; }
.legal-back .icon { transform: rotate(180deg); width: 14px; height: 14px; }
.legal-hero h1 { font-size: clamp(36px, 4.5vw, 64px); margin-top: 23px; letter-spacing: -.065em; }
.legal-hero h1 > span:not(.i18n-copy) { color: var(--accent); }
.legal-title-row { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; margin-top: 39px; padding-top: 29px; border-top: 1px solid var(--line); }
.legal-title-row h2 { font-size: 17px; font-weight: 650; }
.legal-title-row .lead { color: #b6bec3; font-size: 14.5px; line-height: 1.9; margin-top: 12px; max-width: 640px; }
.legal-title-row .date { margin-top: 14px; font-size: 12.5px; color: #ffaab1; }
.print-button { flex-shrink: 0; background: transparent; border-color: var(--line); color: #ced5d8; font-size: 13px; min-height: 45px; padding: 11px 15px; gap: 14px; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 90px; padding-block: 65px 86px; }
.legal-sidebar { align-self: start; position: sticky; top: calc(var(--header-height) + 25px); }
.legal-toc { border-bottom: 1px solid var(--line-light); padding-bottom: 25px; }
.legal-toc summary { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; list-style: none; min-height: 44px; cursor: pointer; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary .icon { width: 16px; height: 16px; }
.legal-toc[open] summary .icon { transform: rotate(180deg); }
.legal-toc nav { display: grid; gap: 2px; margin-top: 12px; }
.legal-toc nav a { display: flex; align-items: baseline; gap: 11px; padding: 10px 9px; min-height: 42px; font-size: 13px; line-height: 1.6; color: #646b62; border-left: 2px solid transparent; }
.legal-toc nav a > span:not(.i18n-copy) { color: #7f857c; font: 10px var(--mono); flex-shrink: 0; }
.legal-toc nav a:hover, .legal-toc nav a[aria-current] { background: #e4e5dd; color: #252e26; border-left-color: #d0182f; }
.legal-help { margin-top: 23px; font-size: 13px; line-height: 1.9; color: #6a7164; }
.legal-sidebar > .inline-link { margin-top: 7px; font-size: 13px; }
.legal-articles article { padding: 31px 0; border-bottom: 1px solid var(--line-light); scroll-margin-top: 0; /* html scroll-padding supplies the header offset once. */ }
.legal-articles article:first-child { padding-top: 9px; }
.legal-articles h2 { font-size: 21px; line-height: 1.55; letter-spacing: -.04em; margin-bottom: 17px; font-weight: 650; }
.legal-articles p { font-size: 15px; line-height: 2.05; color: #5c6459; overflow-wrap: anywhere; }
.legal-articles article a { color: #a8122b; text-decoration: underline; text-underline-offset: 4px; }
.legal-articles article a:hover { color: #d0182f; }
.legal-articles article [data-review-status] { padding: 15px 19px; background: #e6e2d5; border-left: 2px solid #a98b59; color: #64604b; font-size: 14px; }
.legal-end { display: flex; justify-content: space-between; gap: 20px; margin-top: 27px; color: #687362; font-size: 13px; }
.legal-end a { display: inline-flex; align-items: center; gap: 10px; }
.legal-end .icon { width: 15px; height: 15px; }
.terms-page .site-footer { padding-block: 18px 28px; }
.terms-page .footer-bottom { border-top: 0; }
@media (max-width: 1000px) {
  .legal-layout { grid-template-columns: 220px 1fr; gap: 44px; }
}
@media (max-width: 760px) {
  .legal-header-nav { gap: 15px; }
  .terms-page .button-header { display: none; }
  .legal-layout { display: block; padding-top: 31px; padding-bottom: 54px; }
  .legal-sidebar { position: static; margin-bottom: 33px; }
  .legal-toc { padding: 14px 16px; background: #e6e7df; border: 1px solid #d2d6c8; border-radius: 4px; }
  .legal-toc nav { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .legal-help, .legal-sidebar > .inline-link { display: none; }
  .legal-title-row { gap: 20px; }
  .legal-hero { padding-block: 22px 42px; }
  .legal-title-row .lead { font-size: 14px; }
  .legal-hero h1 { font-size: 43px; }
  .legal-articles h2 { font-size: 20px; }
}
@media (max-width: 480px) {
  .legal-header-nav { font-size: 12px; gap: 12px; }
  .legal-header-nav a:first-child { display: none; }
  .legal-back { margin-bottom: 24px; }
  .legal-hero h1 { font-size: 32px; }
  .legal-title-row { margin-top: 29px; padding-top: 23px; display: block; }
  .print-button { margin-top: 20px; }
  .legal-title-row h2 { font-size: 16px; }
  .legal-toc nav { grid-template-columns: 1fr; }
  .legal-toc nav a { font-size: 13px; min-height: 42px; padding-block: 9px; }
  .legal-articles h2 { font-size: 19px; }
  .legal-articles p { font-size: 14.5px; line-height: 2.05; }
  .legal-articles article { padding-block: 26px; }
  .legal-articles article [data-review-status] { font-size: 13.5px; padding: 13px; }
  .legal-end { display: block; font-size: 12.5px; }
  .legal-end a { margin-top: 12px; }
  .terms-page .site-footer { padding-bottom: 32px; }
}
@media print {
  @page { size: A4; margin: 18mm; }
  :root { color-scheme: light; }
  .terms-page { background: #fff; color: #000; font-size: 10pt; }
  .site-header, .legal-back, .legal-sidebar, .print-button, .site-footer, .eyebrow, .legal-hero > h1, .skip-link { display: none !important; }
  .legal-hero, .legal-layout { display: block; padding: 0; }
  .legal-content { background: #fff; color: #000; }
  .legal-title-row { margin: 0 0 20px; padding: 0; border: 0; display: block; }
  .legal-title-row h2 { font-size: 22pt; }
  .legal-title-row .lead, .legal-title-row .date { color: #333; }
  .legal-articles article { padding: 15px 0; break-inside: avoid; }
  .legal-articles h2 { font-size: 13pt; }
  .legal-articles p, .legal-articles article [data-review-status] { font-size: 9.5pt; line-height: 1.65; color: #111; }
  .legal-articles article [data-review-status] { border-color: #777; background: none; }
  .legal-articles article a { color: #111; }
}

/* Keep locale selection reachable on narrow legal pages. */
.terms-page .header-inner { gap: 16px; }
@media (max-width: 900px) {
  .terms-page .legal-header-nav { display: none; }
  .terms-page .header-inner > .button-header { margin-left: auto; }
}
@media (max-width: 680px) {
  .terms-page .header-inner > .button-header { display: none; }
  .terms-page .landing-language-picker { margin-left: auto; }
}

/* 2026-10 renewal: brand | links · language · download, and a readable measure. */
.terms-page .legal-header-nav { order: 1; margin-left: auto; }
.terms-page .landing-language-picker { order: 2; margin-left: 12px; }
.terms-page .header-inner > .button-header { order: 3; }
.legal-articles { max-width: 780px; }
.legal-articles p { line-height: 1.95; }
.legal-toc nav a { border-radius: 0 6px 6px 0; }
.legal-articles article [data-review-status] { border-radius: 0 8px 8px 0; }
.print-button { border-radius: 8px; }
@media (max-width: 900px) {
  .terms-page .landing-language-picker { margin-left: auto; }
  .terms-page .header-inner > .button-header { margin-left: 0; }
}
