/* Legal pages — Water Rabbit ($WAR). Matches the main site palette. */
:root {
    --gold: #c8922a;
    --gold-light: #f0c060;
    --gold-pale: #e8d5a0;
    --deep: #04060f;
    --navy: #080c1a;
    --mid: #0e1428;
    --slate: #1a2240;
    --text: #c8bfa8;
    --text-dim: #7a7060;
    --line: rgba(200, 146, 42, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--deep);
    background-image: radial-gradient(ellipse at top, #0e1428 0%, #04060f 60%);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-light); }
a:hover { color: var(--gold-pale); }

/* Top bar */
.lg-top {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 24px;
    background: rgba(4, 6, 15, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.lg-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lg-brand img { width: 38px; height: 38px; object-fit: contain; }
.lg-brand span {
    font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: 0.14em;
    color: var(--gold-light); font-size: 0.95rem;
}
.lg-back {
    font-family: 'Cinzel', serif; font-size: 0.72rem; letter-spacing: 0.14em;
    text-transform: uppercase; text-decoration: none; color: var(--text);
    border: 1px solid var(--line); padding: 8px 14px; border-radius: 4px;
    transition: border-color .2s, color .2s;
}
.lg-back:hover { color: var(--gold-light); border-color: var(--gold); }

/* Layout */
.lg-wrap { max-width: 820px; margin: 0 auto; padding: 56px 24px 40px; }

.lg-eyebrow {
    font-family: 'Cinzel', serif; font-size: 0.7rem; letter-spacing: 0.35em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
h1 {
    font-family: 'Cinzel', serif; font-weight: 900;
    font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1;
    color: var(--gold-light); letter-spacing: 0.04em; margin-bottom: 12px;
}
.lg-meta { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 28px; }

.lg-summary {
    border: 1px solid var(--line); border-left: 3px solid var(--gold);
    background: rgba(14, 20, 40, 0.6); border-radius: 6px;
    padding: 18px 22px; margin-bottom: 36px;
}
.lg-summary strong { color: var(--gold-pale); }

.lg-toc { margin: 0 0 40px; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.lg-toc li { break-inside: avoid; margin-bottom: 6px; font-size: 1rem; }
.lg-toc a { text-decoration: none; color: var(--text); }
.lg-toc a:hover { color: var(--gold-light); }

h2 {
    font-family: 'Cinzel', serif; font-weight: 600; font-size: 1.15rem;
    letter-spacing: 0.06em; color: var(--gold-light);
    margin: 40px 0 12px; padding-top: 18px; border-top: 1px solid var(--line);
    scroll-margin-top: 80px;
}
p { margin-bottom: 14px; }
ul.lg-list { margin: 0 0 16px 22px; }
ul.lg-list li { margin-bottom: 8px; }
strong { color: var(--gold-pale); font-weight: 600; }

/* Footer */
.lg-foot {
    border-top: 1px solid var(--line); margin-top: 48px;
    padding: 28px 24px 40px; text-align: center;
}
.lg-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 14px; }
.lg-foot nav a {
    font-family: 'Cinzel', serif; font-size: 0.72rem; letter-spacing: 0.12em;
    text-transform: uppercase; text-decoration: none; color: var(--text);
}
.lg-foot nav a:hover, .lg-foot nav a[aria-current="page"] { color: var(--gold-light); }
.lg-foot p { font-size: 0.8rem; color: var(--text-dim); max-width: 760px; margin: 0 auto 8px; }

@media (max-width: 640px) {
    body { font-size: 1.06rem; }
    .lg-top { padding: 12px 16px; }
    .lg-brand span { display: none; }
    .lg-wrap { padding: 36px 16px 32px; }
    .lg-toc { columns: 1; }
}
