/* Landing page for the ADHD app. Colours follow the app's own theme. */

@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url("../fonts/Roboto-Regular.ttf") format("truetype"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url("../fonts/Roboto-Medium.ttf") format("truetype"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url("../fonts/Roboto-Bold.ttf") format("truetype"); }
@font-face { font-family: "Roboto"; font-weight: 900; font-display: swap; src: url("../fonts/Roboto-Black.ttf") format("truetype"); }

:root {
    --primary: #3b43a7;
    --primary-strong: #2f368c;
    --primary-soft: #e8eaf8;
    --cream: #f4e9dc;
    --gold: #f2c46d;
    --green: #5e7b6b;
    --bg: #f7f8fa;
    --bg-tint: #eff0f8;
    --card: #ffffff;
    --text: #2e3440;
    --muted: #5f6970;
    --border: #dce1e5;
    --link: #3b43a7;
    --shadow: 0 1px 2px rgb(46 52 64 / 6%), 0 12px 32px -12px rgb(46 52 64 / 18%);
    --radius: 20px;
    --header-h: 68px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-soft: #2c3160;
        --cream: #f4e9dc;
        --bg: #1d1f26;
        --bg-tint: #23263a;
        --card: #272a34;
        --text: #f3f4f7;
        --muted: #b8c0cc;
        --border: #3a3f4b;
        --link: #aab0ff;
        --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -16px rgb(0 0 0 / 60%);
        color-scheme: dark;
    }
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--link); text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 500; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 20px -16px rgb(0 0 0 / 40%); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.brand span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.button) { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none; transition: color .15s, background .15s; }
.site-nav a:not(.button):hover { color: var(--text); background: var(--primary-soft); }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); cursor: pointer; }

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px; border-radius: 999px;
    background: var(--primary); color: #fff; font-weight: 500; text-decoration: none;
    transition: background .15s, transform .15s;
}
.button:hover { background: var(--primary-strong); }
.button:active { transform: translateY(1px); }
.button--small { min-height: 40px; padding: 0 18px; margin-left: 8px; font-size: 15px; }

@media (max-width: 880px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute; top: calc(var(--header-h) - 4px); left: 12px; right: 12px;
        flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
        background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
        opacity: 0; visibility: hidden; transform: translateY(-6px);
        transition: opacity .18s, transform .18s, visibility .18s;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .site-nav a:not(.button) { padding: 12px 14px; font-size: 16px; }
    .button--small { margin: 6px 0 0; min-height: 48px; }
}

/* ---------- Shared ---------- */

.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--primary); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--link); } }

h1 { font-size: clamp(2.5rem, 4.6vw + 1rem, 4.4rem); font-weight: 900; line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: clamp(1.85rem, 2.4vw + 1rem, 2.75rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--bg-tint); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head > p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 18px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-top: 18px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.card-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
@media (prefers-color-scheme: dark) { .card-icon { color: var(--link); } }

/* ---------- Store buttons ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stores--center { justify-content: center; }

.store {
    display: inline-flex; align-items: center; gap: 12px;
    min-width: 196px; min-height: 58px; padding: 8px 20px 8px 16px; border-radius: 14px;
    background: #15161c; color: #fff; text-decoration: none; font-size: 19px; font-weight: 700; line-height: 1.1;
    transition: transform .15s, box-shadow .15s;
}
.store small { display: block; font-size: 12px; font-weight: 400; opacity: .82; letter-spacing: .01em; }
.store .icon { width: 28px; height: 28px; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgb(0 0 0 / 50%); }
.store--light { background: #fff; color: #15161c; }
.store--soon { cursor: default; opacity: .9; }
.store--soon:not(.store--light) { background: transparent; color: var(--text); border: 1.5px dashed var(--border); }
.store--soon.store--light { background: rgb(255 255 255 / 12%); color: #fff; border: 1.5px dashed rgb(255 255 255 / 45%); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 112px);
    background:
        radial-gradient(60% 70% at 85% 20%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
        radial-gradient(50% 60% at 5% 90%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.lead { margin-top: 22px; max-width: 560px; color: var(--muted); font-size: clamp(18px, .6vw + 16px, 21px); }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--green); stroke-width: 2.4; }
@media (prefers-color-scheme: dark) { .hero-points .icon { color: #8fb6a0; } }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 10px 0 30px; }

.toast {
    position: absolute; left: max(0px, calc(50% - 250px)); bottom: 4%;
    display: flex; align-items: center; gap: 12px; max-width: 300px; padding: 14px 16px;
    background: #ffffff; color: #2e3440; border: 1px solid #e3e6f0; border-radius: 18px;
    box-shadow: 0 18px 40px -18px rgb(46 52 64 / 45%);
    font-size: 14px; line-height: 1.35;
    animation: float 6s ease-in-out infinite;
}
.toast b { font-weight: 700; }
.toast-icon { display: inline-flex; width: 38px; height: 38px; flex: none; align-items: center; justify-content: center; border-radius: 12px; background: #3b43a7; color: #fff; }
.toast-icon .icon { width: 20px; height: 20px; }

.wave { display: inline-flex; align-items: center; gap: 3px; height: 20px; flex: none; }
.wave i { width: 3px; height: 8px; border-radius: 3px; background: #3b43a7; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; }
.wave i:nth-child(3) { animation-delay: .3s; }
.wave i:nth-child(4) { animation-delay: .45s; }

@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 18px; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-copy { text-align: left; }
}

/* ---------- Phone mock-ups (the app's light theme, in both page themes) ---------- */

.phone {
    --p-bg: #f7f8fa; --p-text: #2e3440; --p-muted: #68727a; --p-border: #e3e6ea;
    width: min(310px, 82vw); aspect-ratio: 9 / 19; padding: 10px;
    border-radius: 48px; background: #1b1d24;
    box-shadow: 0 0 0 2px #2a2d36 inset, 0 40px 80px -30px rgb(30 34 80 / 55%), 0 18px 36px -24px rgb(0 0 0 / 50%);
}
.phone--small { width: min(290px, 78vw); }
.phone-screen {
    height: 100%; overflow: hidden; padding: 12px 16px 0; border-radius: 38px;
    background: var(--p-bg); color: var(--p-text); font-size: 12px; line-height: 1.35;
    display: flex; flex-direction: column;
}
.ph-status { display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 0 6px; font-size: 12px; font-weight: 700; }
.ph-island { width: 84px; height: 24px; border-radius: 20px; background: #111; }
.ph-battery { width: 22px; height: 11px; border-radius: 3px; background: #2e3440; }

.ph-greeting { margin-top: 16px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.ph-date { color: var(--p-muted); font-size: 12px; }
.ph-title { margin-top: 18px; font-size: 18px; font-weight: 700; text-align: center; }

.ph-focus { margin-top: 14px; padding: 16px; border-radius: 20px; background: #3b43a7; color: #fff; box-shadow: 0 12px 22px -14px #3b43a7; }
.ph-focus-label { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.ph-focus-label .icon { width: 14px; height: 14px; }
.ph-focus-title { margin-top: 8px; font-size: 17px; font-weight: 700; line-height: 1.2; }
.ph-focus-step { margin-top: 4px; font-size: 11.5px; opacity: .88; }
.ph-progress { height: 6px; margin-top: 12px; border-radius: 6px; background: rgb(255 255 255 / 25%); overflow: hidden; }
.ph-progress span { display: block; height: 100%; border-radius: 6px; background: #f2c46d; }

.ph-heading { margin-top: 16px; font-size: 13px; font-weight: 700; }
.ph-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.ph-tiles span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 1px solid var(--p-border); border-radius: 14px; background: #fff; font-size: 11px; font-weight: 500; }
.ph-tiles .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: #e8eaf8; color: #3b43a7; }

.ph-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px; border: 1px solid var(--p-border); border-radius: 14px; background: #fff; }
.ph-row b { display: block; font-size: 12.5px; }
.ph-row small { color: var(--p-muted); font-size: 11px; }
.ph-dot { display: inline-flex; width: 30px; height: 30px; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: #e8eaf8; color: #3b43a7; }
.ph-dot .icon { width: 16px; height: 16px; }

.ph-nav { display: flex; justify-content: space-around; margin: auto -16px 0; padding: 10px 6px 18px; border-top: 1px solid var(--p-border); background: #fff; color: var(--p-muted); font-size: 10.5px; font-weight: 500; }
.ph-nav .is-active { padding: 3px 12px; border-radius: 12px; background: #e8eaf8; color: #3b43a7; }

.ph-timer { position: relative; width: 168px; margin: 22px auto 0; }
.ph-timer svg { width: 100%; transform: rotate(-90deg); }
.ph-timer circle { fill: none; stroke-width: 9; }
.ph-timer-track { stroke: #e8eaf8; }
.ph-timer-fill { stroke: #3b43a7; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 123; }
.ph-timer > span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ph-timer b { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.ph-timer small { color: var(--p-muted); font-size: 11px; }
.ph-focus-on { margin-top: 14px; font-size: 15px; font-weight: 700; text-align: center; }

.ph-steps { margin-top: 14px; display: grid; gap: 7px; }
.ph-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--p-border); border-radius: 12px; background: #fff; font-size: 12px; }
.ph-steps li > span { width: 16px; height: 16px; flex: none; border: 2px solid #c6cbe8; border-radius: 50%; }
.ph-steps .icon { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: #5e7b6b; color: #fff; stroke-width: 3; }
.ph-steps .is-done { color: var(--p-muted); text-decoration: line-through; }
.ph-steps .is-now { border-color: #3b43a7; box-shadow: 0 0 0 1px #3b43a7 inset; font-weight: 700; }
.ph-steps .is-now > span { border-color: #3b43a7; }

/* ---------- Features ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Split sections ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split-visual { display: flex; justify-content: center; }
.split-copy > p:not(.eyebrow):not(.note) { margin-top: 16px; color: var(--muted); font-size: 18px; }
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: 44px; }
    .split--reverse > :first-child { order: 0; }
}

.steps { counter-reset: step; margin-top: 32px; display: grid; gap: 26px; }
.steps li { position: relative; padding-left: 64px; counter-increment: step; }
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: -2px;
    display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
    border-radius: 14px; background: var(--primary); color: #fff; font-weight: 700; font-size: 18px;
}
.steps p { margin-top: 6px; color: var(--muted); font-size: 17px; }

.ticks { margin-top: 24px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--green); stroke-width: 2.4; }
@media (prefers-color-scheme: dark) { .ticks .icon { color: #8fb6a0; } }

.note { margin-top: 26px; padding: 16px 18px; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; background: color-mix(in srgb, var(--gold) 16%, var(--card)); font-size: 16px; }

/* ---------- Screening card ---------- */

.quiz {
    width: min(420px, 100%); padding: 28px; border-radius: 26px;
    background: #ffffff; color: #2e3440; border: 1px solid #e3e6ea; box-shadow: var(--shadow);
}
.quiz-count { color: #68727a; font-size: 14px; font-weight: 500; }
.quiz-bar { height: 8px; margin-top: 10px; border-radius: 8px; background: #e8eaf8; overflow: hidden; }
.quiz-bar span { display: block; height: 100%; border-radius: 8px; background: #3b43a7; }
.quiz-q { margin-top: 24px; font-size: 22px; font-weight: 700; line-height: 1.25; }
.quiz-hint { margin-top: 6px; color: #68727a; font-size: 15px; }
.quiz-options { display: grid; gap: 8px; margin-top: 20px; }
.quiz-options span { padding: 12px 16px; border: 1.5px solid #dce1e5; border-radius: 14px; font-weight: 500; font-size: 15px; }
.quiz-options .is-picked { border-color: #3b43a7; background: #e8eaf8; color: #3b43a7; }
.quiz-foot { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: #5e7b6b; font-size: 14px; font-weight: 500; }
.quiz-foot .icon { width: 18px; height: 18px; }

/* ---------- Privacy and audience ---------- */

.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1040px) { .privacy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .privacy-grid { grid-template-columns: 1fr; } }

.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.who { display: flex; gap: 16px; align-items: flex-start; padding: 26px; border-radius: var(--radius); background: var(--cream); color: #2e3440; }
.who .icon { width: 30px; height: 30px; color: #3b43a7; }
.who p { font-size: 18px; font-weight: 500; line-height: 1.4; }
@media (max-width: 900px) { .who-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 22px; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 22px; line-height: 1; transition: transform .2s; }
@media (prefers-color-scheme: dark) { .faq summary::after { color: var(--link); } }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }
.faq details p + p { margin-top: -6px; }

/* ---------- Call to action ---------- */

.cta {
    padding: clamp(64px, 9vw, 104px) 0;
    background:
        radial-gradient(60% 90% at 90% 0%, rgb(255 255 255 / 12%), transparent 60%),
        linear-gradient(135deg, #4950bd, #2f368c 70%);
    color: #fff; text-align: center;
}
.cta-icon { margin: 0 auto 24px; border-radius: 22px; box-shadow: 0 16px 40px -16px rgb(0 0 0 / 60%); }
.cta p { margin-top: 12px; color: rgb(255 255 255 / 85%); font-size: 18px; }

/* ---------- Footer ---------- */

.site-footer { padding: 56px 0 28px; background: var(--bg); border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { max-width: 460px; }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 15px; }
.footer-brand .brand img { width: 32px; height: 32px; border-radius: 9px; }
.footer-links { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px 22px; }
.footer-links a { color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; }
.footer-links a:hover { color: var(--link); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

/* ---------- Scroll reveal (only when the script runs) ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .toast, .wave i { animation: none; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .container { width: calc(100% - 32px); }
    .store { flex: 1 1 100%; }
    .toast { left: 0; right: 0; margin-inline: auto; bottom: 0; }
    .card { padding: 22px; }
}

/* ---------- Privacy Policy and Terms of Use ---------- */

.back-link { flex: none; white-space: nowrap; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; }
.back-link:hover { border-color: var(--primary); color: var(--link); }

.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px); }
.legal-inner { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 2.6vw + 1.2rem, 3.2rem); }
.legal h2 { margin-top: 44px; font-size: clamp(1.35rem, .6vw + 1.1rem, 1.6rem); scroll-margin-top: calc(var(--header-h) + 16px); }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 1.3em; list-style: disc; display: grid; gap: 8px; }
.legal li::marker { color: var(--primary); }
.legal-updated { color: var(--muted); font-size: 15px; }
.legal-summary { margin-top: 28px; padding: 18px 22px; border-radius: 16px; background: var(--primary-soft); }
.legal-summary p { margin: 0; }

.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.legal table { width: 100%; border-collapse: collapse; font-size: 16px; }
.legal th, .legal td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.legal th { background: var(--bg-tint); font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }
.legal td:first-child { width: 46%; font-weight: 500; }

@media (max-width: 560px) {
    .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; width: auto; }
    .legal thead { display: none; }
    .legal tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
    .legal tr:last-child { border-bottom: 0; }
    .legal td { padding: 0; border: 0; }
    .legal td:first-child { width: auto; }
    .legal td + td { margin-top: 4px; color: var(--muted); }
}

/* A long app name wraps onto two lines in phone headers rather than being cut off. */
@media (max-width: 480px) {
    .brand { font-size: 16px; line-height: 1.2; }
    .brand span { white-space: normal; }
}
