/* Readable legal drafts. Company placeholders are populated from content/company.json. */
.legal-page { padding-block: 32px 96px; }
.legal-hero { padding-block: 0 32px; }
.legal-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 32px; color: #424653; font-size: 11px; }
.legal-back:hover { color: var(--teal); }
.legal-hero .eyebrow { margin-bottom: 20px; }
.legal-hero h1 { margin: 0 0 24px; font-size: clamp(36px, 4.5vw, 64px); line-height: 1.1; font-weight: 600; letter-spacing: -.05em; }
.legal-hero > p { max-width: 72ch; margin: 0 0 28px; font-size: 15px; line-height: 1.85; }
.legal-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; color: #6d737c; font-size: 11px; }
.legal-draft-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px; border: 1px solid #e4e7ec; border-radius: 4px; background: #f5f7f9; color: #424653; font-size: 10px; font-weight: 550; }
.legal-notice { padding: 22px 26px; margin-bottom: 56px; border: 1px solid #e1dfca; border-left: 3px solid #6d737c; border-radius: 0 5px 5px 0; background: #f7f7ef; }
.legal-notice strong { display: block; margin-bottom: 6px; color: #424653; font-size: 13px; font-weight: 550; }
.legal-notice p { max-width: 115ch; margin: 0; color: #424653; font-size: 12px; line-height: 1.85; }
.legal-layout { display: grid; grid-template-columns: minmax(180px, 220px) minmax(0, 820px); align-items: start; justify-content: space-between; gap: clamp(40px, 7vw, 100px); }
.legal-index { position: sticky; top: 112px; max-height: calc(100dvh - 140px); overflow-y: auto; padding-right: 12px; }
.legal-index > p { margin-bottom: 16px; color: #6d737c; font-size: 10px; font-weight: 550; letter-spacing: .08em; text-transform: uppercase; }
.legal-index nav { display: flex; align-items: flex-start; flex-direction: column; gap: 2px; }
.legal-index nav a { display: flex; align-items: center; min-height: 38px; padding-block: 6px; color: #424653; font-size: 12px; line-height: 1.6; }
.legal-index a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.legal-other { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-other a { display: flex; align-items: center; min-height: 36px; font-size: 11px; color: #6d737c; }
.legal-content { min-width: 0; }
.legal-section { padding-block: 36px; border-top: 1px solid var(--line); }
.legal-section:first-child { padding-top: 0; border-top: 0; }
.legal-section h2 { margin-bottom: 22px; font-size: clamp(23px, 2.2vw, 29px); line-height: 1.3; letter-spacing: -.03em; font-weight: 600; }
.legal-section p { margin-bottom: 18px; font-size: 14px; line-height: 1.9; }
.legal-section > :last-child { margin-bottom: 0; }
.legal-content a { color: var(--teal); text-decoration: underline; text-decoration-color: #b9bec6; text-underline-offset: 3px; }
.legal-content a:hover { text-decoration-color: var(--teal); }
.legal-content strong { color: #282b30; font-weight: 550; }
.legal-content code { padding: 2px 5px; border-radius: 3px; background: #f5f7f9; color: #424653; font-size: .85em; overflow-wrap: anywhere; }
.legal-details { margin: 0 0 20px; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.legal-details > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; padding: 16px 20px; border-bottom: 1px solid #e4e7ec; }
.legal-details > div:last-child { border-bottom: 0; }
.legal-details dt { font-size: 12px; font-weight: 500; line-height: 1.8; color: #424653; }
.legal-details dd { min-width: 0; margin: 0; font-size: 13px; line-height: 1.8; color: #282b30; overflow-wrap: anywhere; }
.legal-table-wrap { overflow-x: auto; margin-block: 24px; border: 1px solid var(--line); border-radius: 5px; }
.legal-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.legal-table caption { padding: 17px 20px; border-bottom: 1px solid var(--line); background: #fdfdfe; color: #424653; font-size: 12px; font-weight: 550; line-height: 1.7; text-align: left; }
.legal-table th, .legal-table td { padding: 15px 18px; border-bottom: 1px solid #e4e7ec; vertical-align: top; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; text-align: left; }
.legal-table thead th { background: #fdfdfe; color: #424653; font-size: 10px; font-weight: 550; }
.legal-table th:first-child { width: 34%; }
.legal-table tbody th { background: #fdfdfe; color: #424653; font-weight: 500; }
.legal-table td { color: #424653; }
.legal-table tbody tr:last-child > * { border-bottom: 0; }
.legal-placeholder { padding: 2px 5px; border: 1px dashed #c9c7aa; border-radius: 3px; background: #f9f7ec; color: #807650; font-size: 12px; line-height: 1.9; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.legal-section .legal-note { padding: 16px 18px; border-left: 2px solid #e4e7ec; background: #fdfdfe; color: #424653; font-size: 12px; line-height: 1.85; }
.legal-inventory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.legal-inventory article { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 5px; background: #fdfdfe; }
.legal-inventory h3 { margin-bottom: 12px; color: #282b30; font-size: 14px; }
.legal-inventory p { margin: 0; font-size: 12px; line-height: 1.85; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 36px; }
  .legal-index { top: 100px; }
  .legal-details > div { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .legal-inventory { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .legal-page { padding-block: 24px 64px; }
  .legal-back { margin-bottom: 24px; }
  .legal-hero > p { font-size: 14px; }
  .legal-notice { margin-bottom: 36px; padding: 18px 20px; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .legal-index { position: static; max-height: none; padding: 20px; border: 1px solid var(--line); border-radius: 5px; background: #fdfdfe; }
  .legal-index nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 6px 20px; }
  .legal-index nav a { min-height: 44px; font-size: 11px; }
  .legal-other { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 4px 20px; margin-top: 16px; padding-top: 12px; }
  .legal-other a { min-height: 44px; }
  .legal-section { padding-block: 30px; }
  .legal-section p { font-size: 13px; }
  .legal-details > div { padding: 15px 18px; }
  .legal-inventory article { padding: 20px; }
  .legal-table caption { padding: 15px 16px; }
  .legal-table th, .legal-table td { padding: 13px 12px; font-size: 11px; }
  .legal-table thead th { font-size: 10px; }
}
@media (max-width: 380px) { .legal-index nav { grid-template-columns: minmax(0, 1fr); } }
