:root {
    --paper: #fdfcf8;
    --ink: #33352f;
    --leaf: #5e7d64;
    --leaf-dark: #405c46;
    --sand: #e8d7c3;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 4%, rgba(232, 215, 195, 0.72), transparent 26rem),
        var(--paper);
    color: var(--ink);
    font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
    line-height: 1.75;
}

.legal-header {
    border-bottom: 1px solid rgba(94, 125, 100, 0.16);
    background: rgba(253, 252, 248, 0.88);
    backdrop-filter: blur(12px);
}

.legal-nav {
    width: min(960px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    color: var(--leaf-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
}

.brand span {
    display: block;
    margin-top: 0.2rem;
    color: #687068;
    font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 1rem;
}

.legal-links a,
.back-link {
    color: var(--leaf-dark);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25rem;
}

.container {
    width: min(800px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    text-decoration: none;
}

.back-link:hover,
.legal-links a:hover {
    color: var(--leaf);
    text-decoration: underline;
}

h1,
h2 {
    color: var(--leaf-dark);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.18;
}

h1 {
    max-width: 14ch;
    margin: 0 0 1.25rem;
    font-size: clamp(2.4rem, 7vw, 4.8rem);
    letter-spacing: -0.04em;
}

h2 {
    margin: 3rem 0 0.8rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

p,
li {
    font-size: 1.02rem;
}

li + li {
    margin-top: 0.5rem;
}

.container a:not(.back-link) {
    color: var(--leaf-dark);
    font-weight: 700;
    text-underline-offset: 0.2rem;
}

.updated {
    display: inline-block;
    margin: 0 0 2rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: var(--sand);
    color: #58483a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legal-footer {
    padding: 2rem 1rem;
    border-top: 1px solid rgba(94, 125, 100, 0.16);
    color: #687068;
    text-align: center;
}

a:focus-visible {
    outline: 3px solid var(--leaf);
    outline-offset: 4px;
}

@media (max-width: 640px) {
    .legal-nav {
        padding: 1rem 0;
        align-items: flex-start;
    }

    .legal-links {
        display: grid;
        text-align: right;
    }
}
