.document-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doc-card {
  min-height: 270px;
  padding: clamp(26px, 3.5vw, 46px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  gap: 16px;
  border: 1px solid rgba(94, 82, 66, .12);
  border-radius: 26px;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
  transition: color .2s, background .2s, transform .18s;
}
.doc-card:hover { color: #fff; background: var(--olive-deep); transform: translateY(-2px); }
.card-number { grid-column: 1 / -1; color: var(--olive-deep); font-family: var(--font-brand); font-size: 16px; letter-spacing: .1em; }
.doc-card:hover .card-number, .doc-card:hover p { color: rgba(255,255,255,.76); }
.doc-card h2 { margin: 42px 0 0; font-family: var(--font-brand); font-size: clamp(36px, 4vw, 54px); font-variation-settings: "wght" 630, "wdth" 84, "opsz" 2; line-height: .92; text-transform: uppercase; text-wrap: balance; }
.doc-card p { grid-column: 1; margin: 0; color: var(--muted); line-height: 1.4; }
.card-arrow { grid-column: 2; grid-row: 3; align-self: end; font-size: 28px; }
.draft-note { margin-top: 20px; padding: 18px 20px; display: flex; gap: 7px 18px; flex-wrap: wrap; border: 1px solid #d9cb79; border-radius: 16px; color: #5d5317; background: #fff8c9; font-size: 14px; }


.document-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--web-gap); }
.document-return, .document-layout > .web-page-intro { grid-column: 1 / -1; }
.document-return { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.back-link, .registration-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--olive-deep); font: 560 22px/1 var(--font-brand); text-transform: uppercase; text-underline-offset: 4px; }
.doc-aside { grid-column: span 3; align-self: start; position: sticky; top: calc(var(--app-header-h, 72px) + 24px); text-transform: uppercase; }
.toc { max-height: calc(100dvh - 140px); padding: 0 16px 16px 0; display: grid; gap: 8px; overflow-y: auto; }
.toc a, .mobile-toc a { min-height: 44px; display: flex; align-items: center; color: var(--muted); font: 500 14px/1.5 system-ui, sans-serif; text-decoration: none; }
.toc a:hover, .mobile-toc a:hover { color: var(--olive-deep); text-decoration: underline; }
.mobile-toc { display: none; }
.document-layout > .legal-copy { grid-column: span 9; width: 100%; max-width: 72ch; font-family: system-ui, sans-serif; }
.revision { font: 400 13px/1.5 system-ui, sans-serif; color: var(--muted); }
.legal-copy { min-width: 0; font-size: 17px; line-height: 1.72; }
.draft-banner { margin-bottom: 46px; padding: 15px 17px; border: 1px solid #d9cb79; border-radius: 14px; color: #5d5317; background: #fff8c9; font-size: 14px; line-height: 1.45; }
.legal-copy h2, .legal-copy h3, .legal-copy h4 { scroll-margin-top: calc(var(--header-height) + 28px); font-family: var(--font-brand); font-variation-settings: "wght" 630, "wdth" 86, "opsz" 2; line-height: 1; }
.legal-copy h2 { margin: 64px 0 23px; font-size: 37px; }
.legal-copy h3 { margin: 46px 0 18px; font-size: 29px; }
.legal-copy h4 { margin: 34px 0 15px; font-size: 24px; }
.legal-copy p { max-width: 68ch; margin: 0 0 17px; }
.legal-copy ul { max-width: 68ch; margin: 12px 0 26px; padding-left: 23px; }
.legal-copy li { margin: 7px 0; padding-left: 4px; }
.legal-copy .notice { padding: 14px 16px; border: 1px solid #e2d475; border-radius: 12px; background: #fffbe1; }
mark.pending { padding: 1px 3px; color: inherit; background: var(--pending); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.table-scroll { margin: 25px 0 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 13px; line-height: 1.45; }
th, td { padding: 13px 14px; text-align: left; vertical-align: top; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
th { background: var(--surface); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
th:last-child, td:last-child { border-right: 0; }


.legal-copy :is(h2, h3, h4), .doc-card h2 { text-transform: uppercase; }
.legal-page .site-header,
.legal-page .doc-aside,
.legal-page .legal-copy :is(h2, h3, h4) { text-transform: uppercase; }
.document-grid { gap: var(--web-gap); }
.doc-card { min-width: 0; min-height: 240px; border-radius: var(--radius-card, 26px); corner-shape: squircle; }
.doc-card h2 { overflow-wrap: anywhere; }
.web-static .home-intro { margin-bottom: 40px; }
.web-static .home-intro > p:last-child { max-width: 40ch; }
.web-static .draft-note { margin-top: 32px; }
@media (max-width: 1023px) {
  .document-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .document-layout > .legal-copy, .doc-aside { grid-column: 1; }
  .doc-aside { position: static; }
  .toc { display: none; }
  .mobile-toc { display: block; border-block: 1px solid var(--line); }
  .mobile-toc summary { min-height: 48px; padding-block: 12px; cursor: pointer; font: 560 24px/1 var(--font-brand); }
  .mobile-toc nav { display: grid; gap: 8px; padding-bottom: 16px; }
  .legal-copy { font-size: 16px; line-height: 1.66; }
  .legal-copy h2 { font-size: 32px; margin-top: 40px; }
  .draft-banner { margin-bottom: 24px; }
}
@media (max-width: 620px) {
  .document-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-card { min-height: 200px; padding: 24px; }
  .doc-card h2 { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .doc-card { transition: none; }
  .doc-card:hover { transform: none; }
}
@media print {
  .site-header, .doc-aside, .site-legal-footer, .native-tab-bar, .document-return { display: none !important; }
  .web-static .document-layout { display: block; padding: 0; width: 100%; }
  .legal-copy { max-width: none; font-size: 11pt; }
  .draft-banner { break-inside: avoid; }
}
