/* Styling for the public legal pages (/legal/*.html).
 *
 * Standalone on purpose — these have to open for someone who is not logged
 * in, from an app-store listing or a link in an email, so they don't depend
 * on the app's own stylesheets loading. Same palette as the app, but with
 * far longer line length and larger text: these are documents to read, not
 * a feed to swipe. */

:root {
    --bg: #0d0d12;
    --panel: #16161d;
    --text: #e9e9f0;
    --muted: #9a9aa8;
    --accent: #8151fb;
    --line: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.legal {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

/* The account deletion page (delete-account.html, the URL given to the app
   store) is marked up as <main class="legal-page">, but nothing here styled
   that class, so the page ran edge to edge with no margins in every
   language. Same reading column as the other documents. */
.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

@media (max-width: 480px) {
    .legal-page { padding: 20px 16px 60px; }
}

.legal-back {
    margin: 0 0 24px;
    font-size: 14px;
}

.legal-back a { color: var(--muted); text-decoration: none; }
.legal-back a:hover { color: var(--text); }

h1 {
    font-size: 30px;
    line-height: 1.2;
    margin: 0 0 6px;
}

h2 {
    font-size: 21px;
    margin: 40px 0 12px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

h3 {
    font-size: 17px;
    margin: 26px 0 8px;
    color: #fff;
}

.legal-meta {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 14px;
}

p { margin: 0 0 14px; }
ul { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

a { color: var(--accent); }

b, strong { color: #fff; font-weight: 600; }

/* Pulled-out passage for the things people actually need to notice — the
   published email address, the penalty for a false claim. */
.legal-callout {
    margin: 24px 0;
    padding: 16px 18px;
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: rgba(129, 81, 251, 0.08);
    font-size: 15px;
}

.legal-warn {
    border-left-color: #e5a93b;
    background: rgba(229, 169, 59, 0.08);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 20px;
    font-size: 15px;
    /* Long cells shouldn't push the page sideways on a phone. */
    display: block;
    overflow-x: auto;
}

.legal-table th,
.legal-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.legal-table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Language row and "this is a translation" notice (14.09.2026, documents in
   10 languages). Both are inserted by a script identically into every
   version, so they look the same in all of them. The current language is
   plain text marked aria-current, the rest are links. */
.legal-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    margin: 0 0 22px;
    font-size: 13px;
    line-height: 1.8;
}

.legal-langs a { color: var(--muted); text-decoration: none; }
.legal-langs a:hover { color: var(--text); }
.legal-langs [aria-current] { color: var(--text); font-weight: 600; }

.legal-translation { margin-top: 0; }

.legal-footer {
    margin-top: 44px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 480px) {
    .legal { padding: 20px 16px 60px; }
    h1 { font-size: 25px; }
    h2 { font-size: 19px; }
}
