@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Theezy legal pages: simple light-mode layout */
:root {
    --gold: #f5c518;
    --gold-dim: #c9a012;
    --gold-line: rgba(201, 160, 18, 0.45);
    --navy: #1b3a6b;
    --bg: #ffffff;
    --bg-soft: #faf9f7;
    --border: rgba(0, 0, 0, 0.1);
    --text: #1a1a1a;
    --text-body: #444851;
    --text-muted: #6b6b6b;
    --font: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
    margin: 0;
    font-family: var(--font), sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
    color: var(--text);
}

a { color: inherit; text-decoration: none; }

:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 32px;
    border-bottom: 1px solid var(--border);
}

.site-logo { display: inline-flex; color: var(--text); }
.site-logo svg { width: 132px; height: auto; display: block; }

.site-nav { display: flex; gap: 24px; font-size: 0.88rem; }
.site-nav a {
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] {
    color: var(--text);
    font-weight: 500;
    border-bottom-color: var(--gold);
}

/* ---------- Document ---------- */
.legal-doc {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 72px;
}

.legal-doc h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 5vw, 2.6rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.legal-updated {
    margin: 0 0 32px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-doc p,
.legal-doc li {
    color: var(--text-body);
    font-size: 0.97rem;
    line-height: 1.8;
}
.legal-doc p { margin: 0 0 16px; }
.legal-doc strong { color: var(--text); font-weight: 600; }

.legal-doc ul { margin: 0 0 20px; padding-left: 22px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc li::marker { color: var(--gold-dim); }

.legal-doc a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--gold-line);
    text-underline-offset: 3px;
    word-break: break-word;
}
.legal-doc a:hover { text-decoration-color: var(--gold); }

/* Section headings with the gold coin number */
.legal-doc h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 48px 0 14px;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.section-num {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: inset -3px 0 0 var(--gold-dim);
    color: var(--text);
    font-family: var(--mono), monospace;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0;
}

.legal-doc h3 {
    margin: 28px 0 10px;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Number read aloud by screen readers; the coin is decorative */
.sr-num {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Company note and all-caps legal warnings */
.legal-note { margin: 0 0 28px; }
.legal-note p { margin: 0 0 4px; }

.legal-doc .legal-callout {
    margin: 22px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--gold);
    background: var(--bg-soft);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.7;
}

/* ---------- Contents ---------- */
.legal-contents {
    margin: 0 0 16px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-soft);
}

.legal-contents h2 {
    display: block;
    margin: 0 0 10px;
    font-size: 0.95rem;
    letter-spacing: 0;
}

.legal-contents ol {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 32px;
}

.legal-contents li {
    margin: 0;
    padding: 3px 0;
    break-inside: avoid;
    font-size: 0.88rem;
    line-height: 1.5;
}

.legal-contents a { text-decoration: none; }
.legal-contents a:hover { text-decoration: underline; text-decoration-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 32px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.82rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .site-header { padding: 14px 18px; }
    .site-logo svg { width: 108px; }
    .site-nav { gap: 16px; font-size: 0.82rem; }
    .legal-doc { padding: 36px 18px 56px; }
    .legal-contents { padding: 16px 18px; }
    .legal-contents ol { columns: 1; }
    .legal-doc h2 { font-size: 1.14rem; gap: 10px; }
    .section-num { width: 30px; height: 30px; font-size: 0.72rem; }
    .site-footer { padding: 18px; }
}

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

@media print {
    .site-header nav, .site-footer nav, .legal-contents { display: none; }
    .legal-doc { padding: 0; max-width: none; }
}