:root {
    --ink: #2d2b28;
    --ink-soft: #716d66;
    --paper: #f8f6f0;
    --cream: #f2f0eb;
    --line: rgba(45, 43, 40, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    background: #e5e2dc;
}

body {
    position: relative;
    isolation: isolate;
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(rgba(55, 53, 49, 0.1) 0.58px, transparent 0.68px) 0 0 / 10px 10px,
        linear-gradient(118deg, rgba(255, 255, 255, 0.88), rgba(239, 237, 232, 0.82)),
        var(--cream);
    font-family: "Segoe UI Variable Text", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-optical-sizing: auto;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: -1;
    width: 34%;
    background: linear-gradient(150deg, rgba(185, 182, 175, 0.2), rgba(117, 115, 109, 0.14));
    clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%);
    content: "";
    pointer-events: none;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid rgba(45, 43, 40, 0.48);
    outline-offset: 3px;
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
    padding: 30px 0 20px;
}

.legal-logo {
    display: block;
    text-decoration: none;
}

.legal-logo img {
    display: block;
    width: 112px;
    height: auto;
}

.legal-actions,
.legal-language {
    display: flex;
    gap: 12px;
    align-items: center;
}

.legal-actions a {
    padding: 6px 1px;
    border-bottom: 1px solid rgba(45, 43, 40, 0.24);
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.legal-language {
    gap: 8px;
}

.legal-language a {
    position: relative;
    padding: 6px 1px;
    color: rgba(45, 43, 40, 0.46);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.legal-language a + a {
    margin-left: 3px;
}

.legal-language a + a::before {
    position: absolute;
    top: 5px;
    left: -9px;
    color: rgba(45, 43, 40, 0.28);
    content: "·";
}

.legal-language a[aria-current="true"] {
    color: var(--ink);
}

.legal-language a[aria-current="true"]::after {
    position: absolute;
    right: 1px;
    bottom: 2px;
    left: 1px;
    height: 1px;
    background: currentColor;
    content: "";
}

.legal-page {
    width: min(960px, calc(100% - 48px));
    margin: 26px auto 62px;
    padding: clamp(30px, 6vw, 68px);
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(248, 246, 240, 0.88);
    box-shadow: 0 28px 76px rgba(31, 29, 25, 0.12);
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

h1 {
    position: relative;
    max-width: 720px;
    margin: 0;
    padding: 14px 0 12px 28px;
    font-size: clamp(42px, 7vw, 70px);
    letter-spacing: -0.045em;
    line-height: 0.98;
}

h1::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: rgba(45, 43, 40, 0.18);
    content: "";
}

h1::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 1px;
    background: rgba(45, 43, 40, 0.18);
    content: "";
}

.legal-summary {
    max-width: 720px;
    margin: 24px 0 8px;
    color: var(--ink-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.65;
}

.legal-updated {
    margin: 16px 0 42px;
    color: rgba(45, 43, 40, 0.5);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.legal-definition {
    max-width: 780px;
    margin: -14px 0 34px;
    color: #58544e;
    font-size: 14px;
    line-height: 1.75;
}

.legal-section {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.legal-section h2 {
    margin: 0 0 13px;
    font-size: 25px;
}

.legal-section p,
.legal-section li {
    color: #58544e;
    font-size: 14px;
    line-height: 1.75;
}

.legal-section p {
    margin: 0 0 12px;
}

.legal-section ul {
    margin: 10px 0 0;
    padding-left: 21px;
}

.legal-section a {
    font-weight: 700;
}

.legal-footer {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    width: min(960px, calc(100% - 48px));
    margin: -25px auto 35px;
    color: rgba(45, 43, 40, 0.5);
    font-size: 10px;
}

.legal-footer nav {
    display: flex;
    gap: 16px;
}

@media (max-width: 680px) {
    body::before {
        width: 100%;
        height: 280px;
        background: linear-gradient(155deg, rgba(185, 182, 175, 0.22), rgba(117, 115, 109, 0.12));
        clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);
    }

    .legal-header,
    .legal-footer {
        gap: 14px;
        align-items: flex-start;
        flex-direction: column;
    }

    .legal-actions {
        width: 100%;
        justify-content: space-between;
    }

    .legal-page {
        margin-top: 8px;
        padding: 28px 24px;
    }

    h1 {
        padding-left: 20px;
        font-size: clamp(38px, 12vw, 52px);
    }
}
