/* Shared styles for the Brain Puzzlr Retro and Jr. privacy policies. */
:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #111827;
    --muted: #4b5563;
    --border: #d1d5db;
    --accent: #5b21b6;
    --notice-bg: #f5f3ff;
    --notice-line: #ddd6fe;
    --notice-ink: #4c1d95;
    --focus: #f59e0b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}
a { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.page { width: min(100% - 32px, 920px); margin: 0 auto; padding: 48px 0; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08); overflow: hidden; }
.hero { padding: 40px; border-bottom: 1px solid var(--border); }
h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; }
.intro { max-width: 720px; margin: 0; color: var(--muted); }
.updated { margin: 16px 0 0; color: var(--muted); font-size: 0.95rem; }
.content { padding: 8px 40px 32px; }
.section { padding: 24px 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; }
h2 { margin: 0 0 12px; font-size: 1.25rem; line-height: 1.25; }
h3 { margin: 18px 0 6px; font-size: 1.05rem; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 24px; }
li { margin-bottom: 8px; }
.section > :last-child { margin-bottom: 0; }
.notice { padding: 16px 18px; border: 1px solid var(--notice-line); border-radius: 14px; background: var(--notice-bg); color: var(--notice-ink); }
table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 0.97rem; }
th, td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
thead th { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
tbody th { width: 30%; font-weight: 700; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 28px 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; }
@media (max-width: 640px) {
    .page { width: min(100% - 20px, 920px); padding: 20px 0; }
    .card { border-radius: 18px; }
    .hero, .content, footer { padding-left: 22px; padding-right: 22px; }
    .hero { padding-top: 28px; padding-bottom: 28px; }
    /* Stack the table so each row reads as a short block on a phone. */
    thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    table, tbody, tr, tbody th, td { display: block; width: 100%; }
    tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
    tbody tr:last-child { border-bottom: none; }
    tbody th, td { padding: 2px 0; border-bottom: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
