/* ============================================================
   Pal&Ko Legal — premium statische site
   Goud (#d4af37) op zwart (#0a0a0a) · Helvetica-stack · Mobile-first
   ============================================================ */

:root {
    --gold: #d4af37;
    --gold-deep: #b8860b;
    --gold-soft: #e6c965;
    --gold-glow: rgba(212, 175, 55, 0.15);
    --bg: #0a0a0a;
    --surface-1: #141414;
    --surface-2: #1a1a1a;
    --surface-3: #242424;
    --border: #2a2a2a;
    --border-soft: rgba(212, 175, 55, 0.18);
    --text: #e9e9e9;
    --text-strong: #ffffff;
    --text-muted: #9aa0a6;
    --text-subtle: #6e7479;
    --max-width: 820px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-deep: 0 18px 48px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(212, 175, 55, 0.08), transparent 60%),
        radial-gradient(900px 500px at 100% 100%, rgba(212, 175, 55, 0.04), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: "Helvetica Neue", Helvetica, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.65;
    font-size: 16px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

a:hover {
    border-bottom-color: var(--gold);
    color: var(--gold-soft);
}

/* ==========  Header  ========== */

header.site-header {
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.85) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 18px 28px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

header.site-header .brand {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 15px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

header.site-header .brand a {
    color: var(--gold);
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

header.site-header .brand .logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

header.site-header nav {
    display: flex;
    gap: 22px;
    font-size: 13px;
    color: var(--text-muted);
}

header.site-header nav a {
    color: var(--text-muted);
    border: none;
    padding: 4px 0;
    transition: color 0.2s ease;
}

header.site-header nav a:hover {
    color: var(--gold);
}

@media (max-width: 600px) {
    header.site-header { padding: 14px 18px; }
    header.site-header nav { gap: 14px; font-size: 12px; }
}

/* ==========  Hero  ========== */

.hero {
    text-align: center;
    padding: 64px 24px 48px;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, var(--gold-glow), transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 18px;
    position: relative;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: var(--text-strong);
    font-weight: 700;
    position: relative;
}

.hero h1 .gold {
    background: linear-gradient(120deg, var(--gold-soft) 0%, var(--gold) 50%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    position: relative;
    line-height: 1.6;
}

/* ==========  Main  ========== */

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 96px;
}

main > h1:first-child {
    color: var(--text-strong);
    font-size: clamp(28px, 4.5vw, 38px);
    margin: 0 0 8px;
    letter-spacing: -0.015em;
    font-weight: 700;
}

.subtitle {
    color: var(--text-muted);
    margin: 0 0 36px;
    font-size: 14px;
    letter-spacing: 0.02em;
}

h2 {
    color: var(--text-strong);
    font-size: 22px;
    margin: 48px 0 14px;
    padding-left: 14px;
    border-left: 3px solid var(--gold);
    letter-spacing: -0.01em;
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    color: var(--text);
    font-size: 16.5px;
    margin: 26px 0 10px;
    font-weight: 600;
    letter-spacing: -0.005em;
}

p, li {
    color: var(--text);
    font-size: 15.5px;
}

p { margin: 0 0 14px; }

ul, ol {
    padding-left: 22px;
    margin: 0 0 18px;
}

li {
    margin-bottom: 8px;
}

li::marker {
    color: var(--gold-deep);
}

strong {
    color: var(--text-strong);
    font-weight: 600;
}

em {
    color: var(--text-muted);
    font-style: italic;
}

code {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.88em;
    color: var(--gold-soft);
    font-family: "SF Mono", "JetBrains Mono", "Menlo", monospace;
}

/* ==========  Tables  ========== */

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 18px 0 24px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-1);
    box-shadow: var(--shadow-soft);
}

th, td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

th {
    background: linear-gradient(180deg, var(--surface-3) 0%, var(--surface-2) 100%);
    color: var(--gold);
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:last-child td { border-bottom: none; }

tbody tr:hover {
    background: rgba(212, 175, 55, 0.025);
}

/* ==========  Callout / Notice  ========== */

.callout {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.06) 0%, rgba(212, 175, 55, 0.02) 100%);
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin: 26px 0;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.callout strong:first-child {
    color: var(--gold);
    font-weight: 600;
}

/* ==========  Lang toggle  ========== */

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-subtle);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 6px;
}

.lang-toggle a, .lang-toggle span {
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.lang-toggle a:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.06);
}

.lang-toggle .active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: #0a0a0a;
    font-weight: 600;
}

/* ==========  Footer  ========== */

footer.site-footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, var(--surface-1) 100%);
    padding: 36px 28px 48px;
    text-align: center;
    color: var(--text-subtle);
    font-size: 13px;
}

footer.site-footer p {
    margin: 6px 0;
    color: var(--text-muted);
}

footer.site-footer a {
    color: var(--gold);
    border-bottom-color: var(--border-soft);
}

footer.site-footer .footer-brand {
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 10px;
}

/* ==========  Card grid (index page)  ========== */

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
}

@media (min-width: 720px) {
    .cards { grid-template-columns: 1fr 1fr; }
}

.card {
    background: linear-gradient(135deg, var(--surface-1) 0%, rgba(20, 20, 20, 0.4) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 200px at 0% 0%, var(--gold-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.card:hover {
    border-color: var(--border-soft);
    transform: translateY(-3px);
    box-shadow: var(--shadow-deep);
}

.card:hover::before { opacity: 1; }

.card .card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid var(--border-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 6px;
}

.card h3 {
    margin: 0;
    color: var(--gold);
    font-size: 17px;
    font-weight: 600;
}

.card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.55;
}

.card .arrow {
    margin-top: 8px;
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 0.05em;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.card:hover .arrow { opacity: 1; transform: translateX(3px); }

/* ==========  Apps section (index)  ========== */

.apps-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.apps-list li {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.apps-list .app-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
    flex-shrink: 0;
    margin-top: 8px;
}

.apps-list strong {
    display: block;
    color: var(--gold);
    margin-bottom: 2px;
    font-weight: 600;
}

.apps-list em {
    color: var(--text-subtle);
    font-style: italic;
    font-size: 14px;
}

/* ==========  TOC for long policy pages  ========== */

.toc {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 28px;
}

.toc-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 12px;
    font-weight: 600;
}

.toc ol {
    margin: 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 24px;
}

.toc li {
    font-size: 13.5px;
    margin-bottom: 6px;
    break-inside: avoid;
}

.toc a {
    color: var(--text-muted);
    border: none;
}

.toc a:hover { color: var(--gold); }

@media (max-width: 560px) {
    .toc ol { columns: 1; }
}

/* ==========  Contact block  ========== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px 0;
}

@media (min-width: 720px) {
    .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: border-color 0.2s ease;
}

.contact-card:hover {
    border-color: var(--border-soft);
}

.contact-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--gold);
    font-weight: 600;
}

.contact-card p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.contact-card a {
    color: var(--text);
    border-bottom-color: var(--border-soft);
}

/* ==========  Selection  ========== */

::selection {
    background: var(--gold);
    color: #0a0a0a;
}
