/* Matches the AGM Apps / Lotto Audit iOS legal pages:
   slate ground, card sections, Syne + DM Sans, sky accent. */

:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
    --border: #334155;
    --font-main: 'DM Sans', sans-serif;
    --font-display: 'Syne', sans-serif;
}

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

html { -webkit-tap-highlight-color: transparent; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -80px;
    z-index: 10000;
    background: var(--accent);
    color: #0f172a;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}
.skip-link:focus {
    top: 12px;
    outline: 2px solid #f8fafc;
    outline-offset: 2px;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.js-reveal-email:focus-visible,
.contact-email:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    padding: 3rem 1rem;
}

.container { max-width: 720px; margin: 0 auto; }
.container:focus { outline: none; }
.container:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.legal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.back-link:hover { color: var(--text-primary); }

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.legal-links a:hover {
    color: var(--text-primary);
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.08);
    text-decoration: none;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.dates {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.section h2 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.85rem;
}

.section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 1rem 0 0.5rem;
}
.section h3:first-of-type { margin-top: 0.25rem; }

.section p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}
.section p:last-child { margin-bottom: 0; }

.note { font-size: 0.82rem; color: #94a3b8; }
.hi { color: #e2e8f0; font-weight: 600; }

ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}
ul li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0.2rem 0;
    padding-left: 1.2rem;
    position: relative;
}
ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: #475569;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.summary {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.summary h2 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.85rem;
}
.summary ul li::before {
    content: '✓';
    color: #22c55e;
    font-size: 0.8rem;
}
.summary strong { color: #e2e8f0; }

.callout {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin: 0.75rem 0;
}
.callout p {
    color: #fde68a;
    font-size: 0.82rem;
    margin: 0;
}

.danger {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin: 0.75rem 0;
}
.danger p {
    color: #fca5a5;
    font-size: 0.82rem;
    margin: 0;
}

.table-wrap { overflow-x: auto; margin-top: 0.6rem; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
th {
    text-align: left;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #334155;
    color: #e2e8f0;
    font-weight: 600;
}
td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #1e293b;
    vertical-align: top;
}
tr:last-child td { border-bottom: none; }

.contact-email,
.js-reveal-email {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--accent);
    margin-top: 0.5rem;
    cursor: pointer;
    width: fit-content;
    text-decoration: none;
}
.js-reveal-email:hover,
.contact-email:hover { text-decoration: none; border-color: rgba(56, 189, 248, 0.45); }

footer.legal-foot {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.72rem;
    color: #94a3b8;
}

@media (max-width: 540px) {
    body { padding: 1.5rem 0.9rem 2.5rem; }
    h1 { font-size: 1.5rem; }
    .section, .summary { padding: 1.15rem; }
}
