:root {
    color-scheme: light;
    --bg: #f7f3ea;
    --paper: #fffdf8;
    --ink: #1d291f;
    --muted: #607066;
    --green: #0b6848;
    --green-strong: #064934;
    --green-soft: #e6f4ed;
    --gold: #b78415;
    --gold-soft: #fff1c7;
    --line: #d8e3da;
    --danger: #8d2d22;
    --shadow: 0 24px 70px rgba(31, 57, 43, .11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 0, rgba(231, 185, 75, .2), transparent 26rem),
        radial-gradient(circle at 96% 12%, rgba(35, 139, 98, .12), transparent 30rem),
        var(--bg);
    color: var(--ink);
    font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: var(--green);
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

a:hover { color: var(--green-strong); }

a:focus-visible,
.doc-nav a:focus-visible,
.back-link:focus-visible {
    outline: 3px solid rgba(183, 132, 21, .45);
    outline-offset: 3px;
    border-radius: 6px;
}

.shell {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 64px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 900;
    letter-spacing: .04em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    color: #fff;
    background: var(--green);
    box-shadow: 0 8px 20px rgba(11, 104, 72, .2);
}

.back-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 253, 248, .8);
    font-weight: 800;
    text-decoration: none;
}

.hero,
.document {
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, .94);
    box-shadow: var(--shadow);
}

.hero {
    overflow: hidden;
    padding: clamp(28px, 6vw, 62px);
    border-radius: 28px 28px 0 0;
    background:
        linear-gradient(125deg, rgba(255, 253, 248, .96), rgba(232, 246, 238, .94)),
        var(--paper);
}

.eyebrow {
    color: var(--green);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1 {
    max-width: 850px;
    margin: 14px 0 16px;
    font-size: clamp(34px, 7vw, 66px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.lead {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(17px, 2.2vw, 21px);
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.pill {
    padding: 7px 11px;
    border: 1px solid rgba(11, 104, 72, .18);
    border-radius: 999px;
    color: var(--green-strong);
    background: rgba(230, 244, 237, .76);
    font-size: 12px;
    font-weight: 800;
}

.doc-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: var(--paper);
}

.doc-nav a {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: center;
    padding: 11px;
    border-right: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

.doc-nav a:last-child { border-right: 0; }

.doc-nav a[aria-current="page"] {
    color: #fff;
    background: var(--green);
}

.document {
    padding: clamp(26px, 6vw, 64px);
    border-radius: 0 0 28px 28px;
}

.notice {
    margin: 0 0 30px;
    padding: 18px 20px;
    border-left: 4px solid var(--green);
    border-radius: 0 16px 16px 0;
    color: #264337;
    background: var(--green-soft);
}

.notice.warning {
    border-left-color: var(--gold);
    color: #594209;
    background: var(--gold-soft);
}

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

section {
    max-width: 820px;
    padding: 8px 0 27px;
    scroll-margin-top: 24px;
}

section + section {
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

h2 {
    margin: 0 0 12px;
    font-size: clamp(23px, 3.6vw, 32px);
    line-height: 1.18;
    letter-spacing: -.025em;
}

h3 {
    margin: 22px 0 8px;
    font-size: 19px;
    line-height: 1.3;
}

p { margin: 0 0 14px; }

ul,
ol {
    margin: 0 0 16px;
    padding-left: 23px;
}

li + li { margin-top: 8px; }

.definition {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0;
    margin: 16px 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.definition dt,
.definition dd {
    margin: 0;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
}

.definition dt {
    color: var(--green-strong);
    background: #f0f7f3;
    font-weight: 900;
}

.definition dd { background: #fff; }

.definition dt:last-of-type,
.definition dd:last-of-type { border-bottom: 0; }

.contact-box {
    margin-top: 26px;
    padding: 20px;
    border: 1px solid rgba(183, 132, 21, .3);
    border-radius: 18px;
    background: #fffaf0;
}

.legal-note {
    color: var(--muted);
    font-size: 13px;
}

footer {
    padding: 25px 8px 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 760px) {
    .doc-nav {
        grid-template-columns: 1fr;
    }

    .doc-nav a {
        min-height: 48px;
        justify-content: flex-start;
        padding: 12px 18px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        text-align: left;
    }

    .doc-nav a:last-child { border-bottom: 0; }

    .definition { grid-template-columns: 1fr; }
    .definition dt { border-bottom: 0; }
}

@media (max-width: 520px) {
    .shell { width: min(100% - 18px, 1080px); padding-top: 10px; }
    .topbar { padding: 0 3px; }
    .brand span:last-child { display: none; }
    .hero { border-radius: 20px 20px 0 0; }
    .document { border-radius: 0 0 20px 20px; }
    h1 { font-size: 38px; }
}

@media print {
    body { background: #fff; }
    .shell { width: 100%; padding: 0; }
    .topbar, .doc-nav, footer { display: none; }
    .hero, .document { border: 0; border-radius: 0; box-shadow: none; }
    .hero { padding: 0 0 24px; }
    .document { padding: 0; }
}
