:root {
    --wine: #42000b;
    --wine-deep: #1f090d;
    --ivory: #f7f3ed;
    --paper: #fffdf8;
    --ink: #211719;
    --muted: rgba(33, 23, 25, .66);
    --line: rgba(66, 0, 11, .14);
    --display: "Aboreto", Georgia, serif;
    --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --page-pad: clamp(20px, 5vw, 82px);
}

* { box-sizing: border-box; }
html { background: var(--ivory); scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--ivory);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
::selection { background: var(--wine); color: var(--ivory); }

.legal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 82px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 var(--page-pad);
    color: var(--wine);
    background: rgba(247, 243, 237, .91);
    border-bottom: 1px solid rgba(66, 0, 11, .08);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.legal-header__back,
.legal-header__side {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .17em;
    font-weight: 600;
}
.legal-header__back { justify-self: start; }
.legal-header__back span { display: inline-block; transition: transform .45s var(--ease); }
.legal-header__back:hover span { transform: translateX(-4px); }
.legal-header__side { justify-self: end; opacity: .55; }

.legal-logo {
    width: 104px;
    height: 48px;
    display: grid;
    place-items: center;
}
.legal-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

.legal-hero {
    min-height: 50svh;
    display: grid;
    align-items: end;
    padding: clamp(100px, 15vh, 160px) var(--page-pad) clamp(50px, 7vh, 76px);
    color: var(--ivory);
    background:
        radial-gradient(circle at 83% 18%, rgba(255,255,255,.075), transparent 28%),
        linear-gradient(145deg, var(--wine) 0%, var(--wine-deep) 100%);
}
.legal-hero__inner { width: min(940px, 100%); }
.legal-kicker {
    margin: 0 0 20px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .2em;
    opacity: .65;
}
.legal-title {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(42px, 6.2vw, 88px);
    line-height: .98;
    letter-spacing: -.055em;
    text-wrap: balance;
}
.legal-date {
    margin: 26px 0 0;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .58;
}

.legal-layout {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: clamp(56px, 8vw, 104px) var(--page-pad) clamp(80px, 10vw, 140px);
    display: grid;
    grid-template-columns: minmax(180px, .38fr) minmax(0, 1fr);
    gap: clamp(48px, 8vw, 128px);
    align-items: start;
}
.legal-aside {
    position: sticky;
    top: 116px;
    display: grid;
    gap: 22px;
}
.legal-aside__label {
    margin: 0;
    color: var(--wine);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-weight: 700;
}
.legal-aside p {
    margin: 0;
    max-width: 220px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}
.legal-aside__rule { width: 42px; height: 1px; background: var(--wine); opacity: .38; }

.legal-content { min-width: 0; }
.legal-intro {
    margin: 0 0 60px;
    max-width: 820px;
    color: var(--wine);
    font-family: var(--display);
    font-size: clamp(19px, 2.2vw, 30px);
    line-height: 1.42;
    letter-spacing: -.03em;
}
.legal-section {
    padding: 38px 0;
    border-top: 1px solid var(--line);
}
.legal-section:first-of-type { border-top-color: rgba(66, 0, 11, .28); }
.legal-section h2 {
    margin: 0 0 22px;
    color: var(--wine);
    font-family: var(--display);
    font-size: clamp(21px, 2vw, 29px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.035em;
}
.legal-section h3 {
    margin: 28px 0 10px;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .13em;
}
.legal-section p,
.legal-section li {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.82;
}
.legal-section p { margin: 0 0 15px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 12px 0 0; padding-left: 1.15rem; }
.legal-section li + li { margin-top: 5px; }
.legal-section strong { color: var(--ink); font-weight: 600; }
.legal-section a {
    color: var(--wine);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.legal-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 22px;
    border: 1px solid var(--line);
    background: var(--line);
}
.legal-detail {
    padding: 18px 20px;
    background: var(--paper);
}
.legal-detail span {
    display: block;
    margin-bottom: 7px;
    color: var(--wine);
    font-size: 8px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .17em;
    font-weight: 700;
}
.legal-detail p, .legal-detail a {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.55;
    text-decoration: none;
}
.legal-note {
    margin-top: 26px;
    padding: 18px 20px;
    border-left: 2px solid var(--wine);
    background: rgba(66, 0, 11, .045);
}
.legal-note p { margin: 0; font-size: 12.5px; }

.legal-footer {
    padding: 32px var(--page-pad);
    color: rgba(247, 243, 237, .58);
    background: #090607;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    font-size: 8.5px;
    text-transform: uppercase;
    letter-spacing: .14em;
}
.legal-footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-footer a { transition: color .25s ease; }
.legal-footer a:hover { color: var(--ivory); }

@media (max-width: 820px) {
    .legal-header { height: 72px; grid-template-columns: auto 1fr auto; padding: 0 18px; gap: 14px; }
    .legal-logo { width: 88px; height: 42px; justify-self: center; }
    .legal-header__side { display: none; }
    .legal-header__back { font-size: 8px; }
    .legal-hero { min-height: 44svh; padding-left: 20px; padding-right: 20px; }
    .legal-layout { grid-template-columns: 1fr; gap: 38px; padding-left: 20px; padding-right: 20px; }
    .legal-aside { position: static; grid-template-columns: auto 1fr; align-items: center; }
    .legal-aside p { max-width: none; grid-column: 1 / -1; }
    .legal-aside__rule { display: none; }
    .legal-details { grid-template-columns: 1fr; }
    .legal-section { padding: 30px 0; }
    .legal-footer { padding: 28px 20px; flex-direction: column; align-items: flex-start; }
}

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

.legal-content > p:not(.legal-intro) {
    max-width: 820px;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.82;
}
.legal-content > .legal-intro + p {
    margin-top: -40px;
}
.legal-content > p:not(.legal-intro) + .legal-section {
    margin-top: 44px;
}