:root {
  --ink: #10253c;
  --muted: #647184;
  --teal: #07849a;
  --teal-dark: #056b80;
  --teal-soft: #eaf8fa;
  --line: #dfe8ec;
  --warning: #fff7e5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f7fafb; font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #056b80; outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 11px 14px; border-radius: 8px; color: white; background: var(--ink); }
.skip-link:focus { top: 12px; }
.legal-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; padding: 10px max(22px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid rgba(223,232,236,.9); background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }
.legal-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.legal-brand img { width: 106px; height: 66px; object-fit: contain; }
.legal-brand span { display: grid; gap: 3px; }
.legal-brand strong { font-size: 15px; }
.legal-brand small { color: var(--muted); font-size: 10px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .button { max-width: 210px; line-height: 1.4; text-align: center; padding-top: 10px; padding-bottom: 10px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid var(--teal); border-radius: 9px; color: white; background: linear-gradient(135deg, #0996ab, #076f86); box-shadow: 0 9px 20px rgba(7,132,154,.18); font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { filter: brightness(.98); transform: translateY(-1px); }
.button-secondary { color: var(--teal-dark); background: white; box-shadow: none; }
.button:not(.button-secondary) { background: linear-gradient(135deg, #076f86, #056b80); }
.button-danger { border-color: #9c3030; background: #9c3030; box-shadow: 0 9px 20px rgba(156,48,48,.16); }
.legal-hero { padding: 62px 24px 46px; color: white; background: linear-gradient(135deg, #102c40, #076f86); }
.legal-hero-inner { max-width: 980px; margin: 0 auto; }
.eyebrow { margin: 0 0 10px; color: #bdebf0; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 900px; margin: 0; font-size: clamp(36px, 6vw, 62px); line-height: 1.04; letter-spacing: -.04em; }
.hero-lead { max-width: 760px; margin: 18px 0 0; color: #e4f3f5; font-size: 16px; line-height: 1.7; }
.updated { display: inline-flex; margin-top: 20px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #effbfc; font-size: 11px; font-weight: 800; }
.legal-layout { max-width: 1120px; display: grid; grid-template-columns: 245px minmax(0, 1fr); align-items: start; gap: 30px; margin: 0 auto; padding: 38px 24px 76px; }
.legal-nav { position: sticky; top: 112px; display: grid; gap: 4px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 12px 36px rgba(16,37,60,.05); }
.legal-nav strong { margin: 4px 8px 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.legal-nav a { padding: 9px 10px; border-radius: 7px; color: #506176; font-size: 12px; font-weight: 700; text-decoration: none; }
.legal-nav a:hover, .legal-nav a:focus-visible { color: var(--teal-dark); background: var(--teal-soft); }
.legal-content { min-width: 0; display: grid; gap: 16px; }
.legal-card { padding: 28px 30px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 12px 36px rgba(16,37,60,.045); }
.legal-card h2 { margin: 0 0 14px; color: #17344a; font-size: 23px; letter-spacing: -.02em; }
.legal-card h3 { margin: 22px 0 9px; color: #234258; font-size: 17px; }
.legal-card p, .legal-card li { color: #526273; font-size: 14px; line-height: 1.75; }
.legal-card p { margin: 0 0 11px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card ul, .legal-card ol { display: grid; gap: 7px; margin: 10px 0 0; padding-left: 21px; }
.legal-card strong { color: var(--ink); }
.notice { padding: 18px 20px; border: 1px solid #b8dce1; border-radius: 12px; color: #315066; background: var(--teal-soft); font-size: 14px; line-height: 1.65; }
.notice-warning { border-color: #e7cc92; color: #5d4721; background: var(--warning); }
.notice-danger { border-color: #e3b0b0; color: #702929; background: #fff1f1; }
.price-box { display: grid; gap: 6px; margin: 16px 0; padding: 18px 20px; border-left: 4px solid var(--teal); border-radius: 0 10px 10px 0; color: #40546a; background: #f3fafb; }
.price-box strong { font-size: 18px; }
.identity-list { list-style: none; padding-left: 0 !important; }
.identity-list li { padding: 2px 0; }
.legal-form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.legal-form label { display: grid; gap: 7px; color: #394d60; font-size: 13px; font-weight: 800; }
.legal-form input, .legal-form select, .legal-form textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #d3e0e4; border-radius: 9px; color: var(--ink); background: #fbfcfd; }
.legal-form input[type="checkbox"] { width: 18px; min-height: 18px; height: 18px; padding: 0; accent-color: var(--teal); }
.flow-step label > span:not(.sr-only) { display: flex; align-items: flex-start; gap: 10px; color: #44586b; font-size: 13px; font-weight: 700; line-height: 1.55; }
.legal-form textarea { min-height: 112px; resize: vertical; }
.legal-form input:focus, .legal-form select:focus, .legal-form textarea:focus { border-color: var(--teal); outline: 3px solid rgba(7,132,154,.1); }
.form-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-status { display: none; padding: 16px 18px; border: 1px solid #acd5bc; border-radius: 10px; color: #27573a; background: #effaf2; font-size: 13px; line-height: 1.65; }
.form-status[aria-hidden="false"] { display: block; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.steps li { padding: 10px 8px; border-radius: 8px; color: #708092; background: #edf2f4; font-size: 11px; font-weight: 900; text-align: center; }
.steps li.active { color: white; background: var(--teal); }
.flow-step[hidden] { display: none; }
.recap { display: grid; gap: 9px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafb; }
.recap div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; color: #526273; font-size: 13px; }
.recap strong { color: var(--ink); }
.legal-footer { color: #c8d2da; background: #0e2437; }
.legal-footer-inner { max-width: 1120px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; margin: 0 auto; padding: 30px 24px; }
.legal-footer p { margin: 0; font-size: 12px; line-height: 1.6; }
.legal-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; }
.legal-footer a { color: inherit; font-size: 11px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 820px) {
  .legal-header { min-height: 78px; padding: 8px 16px; }
  .legal-brand img { width: 82px; height: 56px; }
  .legal-brand span { display: none; }
  .header-actions .button-secondary { display: none; }
  .legal-hero { padding: 46px 20px 36px; }
  .legal-layout { grid-template-columns: 1fr; padding: 24px 16px 58px; }
  .legal-nav { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .legal-nav strong { grid-column: 1 / -1; }
  .legal-card { padding: 23px 19px; }
  .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .recap div { grid-template-columns: 1fr; gap: 2px; }
  .legal-footer-inner { grid-template-columns: 1fr; text-align: center; }
  .legal-footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 37px; }
  .legal-hero { padding-left: 16px; padding-right: 16px; }
  .legal-nav { grid-template-columns: 1fr; }
  .legal-nav strong { grid-column: auto; }
  .legal-card h2 { font-size: 21px; }
  .button { width: 100%; }
  .header-actions .button { width: auto; max-width: 190px; min-height: 44px; padding: 9px 13px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
