:root {
    --ink: #17233f;
    --muted: #53627a;
    --blue: #2458a6;
    --blue-dark: #173d77;
    --blue-pale: #edf4ff;
    --gold: #d5a93e;
    --line: #dce4ef;
    --paper: #ffffff;
    --wash: #f5f8fc;
    --shadow: 0 18px 50px rgba(23, 35, 63, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--wash); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.72; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 3px; }
.legal-skip { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; transform: translateY(-150%); }
.legal-skip:focus { transform: translateY(0); }
.legal-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.legal-header__inner { width: min(1180px, calc(100% - 40px)); min-height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.legal-brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; line-height: 1.2; }
.legal-brand img { width: 52px; height: 52px; object-fit: contain; }
.legal-brand span { display: grid; gap: 4px; }
.legal-brand strong { font-size: 15px; letter-spacing: .01em; }
.legal-brand small { color: var(--muted); font-size: 12px; }
.legal-header nav, .legal-footer nav { display: flex; align-items: center; gap: 8px; }
.legal-header nav a { padding: 9px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.legal-header nav a:hover, .legal-header nav a[aria-current="page"] { background: var(--blue-pale); color: var(--blue-dark); }
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.legal-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 48px; align-items: end; margin: 36px 0 30px; padding: 58px 64px; overflow: hidden; border-radius: 24px; background: var(--blue-dark); color: #fff; box-shadow: var(--shadow); }
.legal-hero::after { content: ""; position: absolute; width: 210px; height: 210px; right: -75px; top: -95px; border: 40px solid rgba(213,169,62,.32); border-radius: 50%; }
.legal-kicker { display: block; margin-bottom: 16px; color: #cbdcff; font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.legal-hero h1 { max-width: 750px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 72px); font-weight: 400; letter-spacing: -.035em; line-height: .98; }
.legal-hero__copy p { max-width: 690px; margin: 22px 0 0; color: #e5edfb; font-size: 18px; line-height: 1.55; }
.legal-status { position: relative; z-index: 1; padding: 22px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(255,255,255,.08); }
.legal-status span { color: #cbdcff; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.legal-status strong { display: block; margin: 3px 0 13px; font-size: 18px; }
.legal-status p { margin: 0; color: #e5edfb; font-size: 13px; line-height: 1.5; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 64px; }
.legal-toc { position: sticky; top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.legal-toc > strong { display: block; margin-bottom: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.legal-toc nav { display: grid; }
.legal-toc a { padding: 8px 0; border-bottom: 1px solid #edf1f6; color: var(--muted); font-size: 14px; line-height: 1.4; text-decoration: none; }
.legal-toc a:last-child { border: 0; }
.legal-toc a:hover { color: var(--blue); }
.legal-document { padding: 38px 54px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 10px 35px rgba(23,35,63,.05); }
.legal-summary { margin-bottom: 38px; padding: 22px 24px; border: 1px solid #ead8a5; border-radius: 10px; background: #fff9e9; }
.legal-summary strong { display: block; margin-bottom: 4px; color: #765815; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
.legal-summary p { margin: 0; color: #514521; }
.legal-document section { scroll-margin-top: 30px; padding: 7px 0 30px; }
.legal-document section + section { padding-top: 31px; border-top: 1px solid var(--line); }
.legal-document h2 { margin: 0 0 14px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 500; line-height: 1.2; }
.legal-document p { margin: 0 0 14px; color: #3f4e66; }
.legal-document ul { margin: 6px 0 16px; padding-left: 24px; color: #3f4e66; }
.legal-document li { margin-bottom: 10px; padding-left: 4px; }
.legal-contact { display: grid; justify-items: start; gap: 4px; margin-top: 24px; padding: 24px; border-radius: 14px; background: var(--blue-pale); }
.legal-contact span { color: var(--blue-dark); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.legal-contact strong { font-size: 19px; }
.legal-contact p { margin: 6px 0 0; font-size: 14px; }
.legal-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px max(20px, calc((100% - 1180px) / 2)); background: var(--ink); color: #fff; }
.legal-footer > div { display: grid; }
.legal-footer span { color: #b7c4da; font-size: 12px; }
.legal-footer a { padding: 7px 9px; color: #dce7f8; font-size: 13px; }

@media (max-width: 820px) {
    .legal-header__inner { padding: 14px 0; align-items: flex-start; flex-direction: column; }
    .legal-header nav { width: 100%; overflow-x: auto; }
    .legal-header nav a { white-space: nowrap; }
    .legal-hero { grid-template-columns: 1fr; gap: 28px; padding: 42px 34px; }
    .legal-status { max-width: 420px; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
    .legal-toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
    .legal-document { padding: 32px; }
}

@media (max-width: 520px) {
    main, .legal-header__inner { width: min(100% - 24px, 1180px); }
    .legal-brand strong { font-size: 14px; }
    .legal-header nav a { padding-left: 8px; padding-right: 8px; }
    .legal-hero { margin-top: 18px; padding: 34px 24px; border-radius: 18px; }
    .legal-hero h1 { font-size: 41px; }
    .legal-hero__copy p { font-size: 16px; }
    .legal-toc { padding: 20px; }
    .legal-toc nav { grid-template-columns: 1fr; }
    .legal-document { padding: 26px 21px; }
    .legal-document h2 { font-size: 25px; }
    .legal-footer { align-items: flex-start; flex-direction: column; }
    .legal-footer nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
