/* Общие стили юридических страниц: /terms, /privacy, /personal-data-consent, /delete-account.
   Токены — те же, что у лендинга (index.html). */
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-display: swap; src: url(/assets/fonts/NunitoSans_600SemiBold.ttf) format("truetype"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url(/assets/fonts/NunitoSans_700Bold.ttf) format("truetype"); }
@font-face { font-family: "Nunito Sans"; font-weight: 800; font-display: swap; src: url(/assets/fonts/NunitoSans_800ExtraBold.ttf) format("truetype"); }

:root {
    --bg: #f6f6f6;
    --surface: #ffffff;
    --text: #111a16;
    --muted: #5b6661;
    --border: #e6e8e7;
    --primary: #10b981;
    --accent-text: #047857;
    --primary-soft: #d1fae5;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111413;
        --surface: #1b1f1d;
        --text: #eef3f0;
        --muted: #a2ada8;
        --border: #2a302d;
        --accent-text: #34d399;
        --primary-soft: #0f3b2c;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

header.top { border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; color: var(--primary); }
.brand img { width: 32px; height: 32px; border-radius: 9px; }

main { padding: 40px 0 64px; }
h1 { font-size: 32px; line-height: 1.2; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
.edition { color: var(--muted); margin: 0 0 32px; }
h2 { font-size: 21px; line-height: 1.3; font-weight: 800; margin: 40px 0 12px; }
h3 { font-size: 17px; font-weight: 800; margin: 24px 0 8px; }
p, li { margin: 0 0 12px; }
ul, ol { padding-left: 22px; margin: 0 0 12px; }
strong { font-weight: 800; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 22px;
    margin: 0 0 16px;
}
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }
.note { background: var(--primary-soft); border-color: transparent; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { font-weight: 800; }
tr:last-child td { border-bottom: 0; }

footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: inherit; text-decoration: none; }
footer a:hover, footer a[aria-current="page"] { color: var(--text); text-decoration: underline; }

@media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    main { padding-top: 28px; }
    h1 { font-size: 26px; }
    table { font-size: 14px; }
    th, td { padding: 10px; }
}
