



@font-face {
    font-family: 'Sentient-Light';
    src: url('../assets/fonts/Sentient-Light.woff2') format('woff2');
    font-display: swap;
}

:root {
    --legal-deep: #103946;
    --legal-sea: #174d60;
    --legal-ink: #172f3b;
    --legal-ink-soft: #506570;
    --legal-paper: #fbfaf6;
    --legal-cream: #f8f5ed;
    --legal-mint: #dce9e4;
    --legal-sand: #f1e4ce;
    --legal-line: rgba(23, 47, 59, 0.14);
    --legal-display: 'Sentient-Light', Georgia, serif;
    --legal-body: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.legal-page {
    min-width: 0;
    margin: 0;
    overflow-x: clip;
    background:
        radial-gradient(circle at 8% 12%, rgba(220, 233, 228, 0.75), transparent 22rem),
        radial-gradient(circle at 94% 58%, rgba(241, 228, 206, 0.68), transparent 25rem),
        var(--legal-cream);
    color: var(--legal-ink);
    font-family: var(--legal-body);
    font-size: 16px;
    line-height: 1.78;
}

.legal-page *,
.legal-page *::before,
.legal-page *::after { box-sizing: border-box; }

.legal-page a { color: var(--legal-sea); }
.legal-page a:hover { color: var(--legal-deep); }

.legal-hero {
    position: relative;
    overflow: hidden;
    background: var(--legal-deep);
    color: #fff;
}

.legal-hero::before {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-image: radial-gradient(rgba(248, 246, 239, 0.42) 0.5px, transparent 0.5px);
    background-size: 8px 8px;
    mask-image: linear-gradient(125deg, #000, transparent 72%);
    content: '';
    pointer-events: none;
}

.legal-hero::after {
    position: absolute;
    top: -14rem;
    right: -7rem;
    width: min(50vw, 38rem);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 0 4rem rgba(220, 233, 228, 0.08), 0 0 0 8rem rgba(241, 228, 206, 0.05);
    content: '';
    pointer-events: none;
}

.legal-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - clamp(44px, 10vw, 124px)));
    margin: 0 auto;
    padding: 23px 0 clamp(82px, 11vw, 140px);
}

.legal-hero__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.legal-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.legal-brand img {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 3px;
    border-radius: 50%;
    background: var(--legal-paper);
}

.legal-brand span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.legal-brand strong {
    overflow: hidden;
    color: #fff;
    font-family: var(--legal-display);
    font-size: 1.18rem;
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legal-brand small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.54rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.legal-back {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.legal-back:hover {
    border-color: var(--legal-mint);
    background: var(--legal-mint);
    color: var(--legal-deep) !important;
}

.legal-back span { font-size: 1rem; line-height: 1; }

.legal-hero__copy {
    max-width: 760px;
    margin-top: clamp(66px, 10vw, 122px);
}

.legal-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 17px;
    color: var(--legal-mint);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1.4;
    text-transform: uppercase;
}

.legal-eyebrow::before {
    width: 27px;
    height: 1px;
    background: currentColor;
    content: '';
}

.legal-hero h1 {
    max-width: 12ch;
    margin: 0;
    color: #fff;
    font-family: var(--legal-display);
    font-size: clamp(3.3rem, 7vw, 6.1rem);
    font-weight: 400;
    letter-spacing: -0.075em;
    line-height: 0.88;
    text-wrap: balance;
}

.legal-hero__lead {
    max-width: 63ch;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(0.94rem, 1.3vw, 1.08rem);
    line-height: 1.75;
}

.legal-content {
    position: relative;
    width: min(1000px, calc(100% - clamp(44px, 10vw, 124px)));
    margin: clamp(-48px, -5vw, -64px) auto 0;
    padding: clamp(34px, 5vw, 68px);
    border: 1px solid var(--legal-line);
    background: rgba(251, 250, 246, 0.94);
    box-shadow: 0 28px 68px rgba(16, 57, 70, 0.11);
}

.legal-content section {
    margin: 0;
    padding: clamp(31px, 4vw, 45px) 0;
    border-top: 1px solid var(--legal-line);
}

.legal-content section:first-child {
    padding-top: 0;
    border-top: 0;
}

.legal-content section:last-child { padding-bottom: 0; }

.legal-content h2 {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    color: var(--legal-ink);
    font-family: var(--legal-display);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 1.04;
}

.legal-content h2::before {
    width: 28px;
    height: 1px;
    flex: 0 0 28px;
    margin-top: 0.6em;
    background: var(--legal-sea);
    content: '';
}

.legal-content h3 {
    margin: 28px 0 9px;
    color: var(--legal-sea);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.legal-content p { max-width: 76ch; margin: 0 0 15px; }
.legal-content p:last-child { margin-bottom: 0; }

.legal-content ul,
.legal-content ol {
    max-width: 72ch;
    margin: 18px 0;
    padding-left: 1.25rem;
}

.legal-content li { margin: 7px 0; padding-left: 4px; }
.legal-content li::marker { color: var(--legal-sea); }

.legal-content strong { color: var(--legal-ink); }

.notice,
.warning {
    max-width: 76ch;
    margin: 23px 0;
    padding: 18px 20px;
    border: 0;
    border-left: 2px solid var(--legal-sea);
    background: rgba(220, 233, 228, 0.62);
    color: var(--legal-ink);
}

.warning {
    border-left-color: #a46f2c;
    background: rgba(241, 228, 206, 0.7);
}

.notice ul,
.warning ul { margin-bottom: 0; }

.todo {
    display: inline;
    padding: 2px 5px;
    border-radius: 0;
    background: rgba(164, 111, 44, 0.14);
    color: #714810;
    font-size: 0.92em;
    font-weight: 700;
}

.legal-content code {
    padding: 2px 5px;
    background: rgba(23, 77, 96, 0.08);
    color: var(--legal-deep);
    font-size: 0.88em;
}

.legal-content table {
    width: 100%;
    min-width: 560px;
    margin: 24px 0 5px;
    border-collapse: collapse;
    background: #fff;
    color: var(--legal-ink);
    font-size: 0.86rem;
    line-height: 1.55;
}

.legal-content th,
.legal-content td {
    padding: 14px 16px;
    border: 1px solid var(--legal-line);
    text-align: left;
    vertical-align: top;
}

.legal-content th {
    background: var(--legal-sea);
    color: #fff;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.legal-footer {
    width: min(1000px, calc(100% - clamp(44px, 10vw, 124px)));
    margin: 0 auto;
    padding: 44px 0 54px;
    color: var(--legal-ink-soft);
    font-size: 0.72rem;
    line-height: 1.65;
    text-align: center;
}

.legal-footer p { max-width: 74ch; margin: 0 auto; }

.legal-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
    justify-content: center;
}

.legal-footer__links a {
    color: var(--legal-sea);
    font-size: 0.72rem;
    font-weight: 750;
    text-decoration: none;
}

.legal-footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 700px) {
    .legal-hero__inner,
    .legal-content,
    .legal-footer { width: calc(100% - 36px); }

    .legal-hero__inner { padding-top: 17px; padding-bottom: 78px; }
    .legal-brand small { display: none; }
    .legal-back { min-width: 42px; padding: 0 12px; }
    .legal-back span { font-size: 1.15rem; }
    .legal-back__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .legal-hero__copy { margin-top: 58px; }
    .legal-hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
    .legal-content { margin-top: -34px; padding: 29px 22px; }
    .legal-content section { padding: 30px 0; }
    .legal-content h2 { gap: 10px; font-size: clamp(1.62rem, 9vw, 2.15rem); }
    .legal-content h2::before { width: 20px; flex-basis: 20px; }
    .legal-content table { display: table; width: 100%; min-width: 0; max-width: none; }
    .legal-content th,
    .legal-content td { min-width: 0; padding: 0.9rem 0.8rem; overflow-wrap: anywhere; }
}

@media (max-width: 390px) {
    .legal-hero__inner,
    .legal-content,
    .legal-footer { width: calc(100% - 28px); }

    .legal-brand { gap: 8px; }
    .legal-brand img { width: 38px; height: 38px; flex-basis: 38px; }
    .legal-brand strong { max-width: 170px; font-size: 1.04rem; }
    .legal-content { padding: 25px 17px; }
    .notice,
    .warning { padding: 15px; }
}

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