/* =====================================================================
   FUNPILOT — CSS ДЛЯ ЮРИДИЧЕСКИХ СТРАНИЦ (privacy / terms / refund_policy)
   =====================================================================
   Отдельно от основного style.css осознанно — у этих страниц другая
   задача (длинный читаемый текст), а не карточки/кнопки приложения.

   Выбор темы — через атрибут data-theme на <html>:
     <html lang="ru" data-theme="dark">   (по умолчанию, как сейчас на сайте)
     <html lang="ru" data-theme="light">  (бумажный режим чтения)
   Текст самих политик остаётся в каждом php-файле как был — тут только
   оформление, общее для всех трёх страниц.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

/* ---- Тема: dark (по умолчанию) ---- */
:root,
:root[data-theme="dark"] {
    --bg: #07090e;
    --surface: rgba(16, 20, 30, .76);
    --surface-strong: rgba(19, 24, 35, .84);
    --border: rgba(255, 255, 255, .075);
    --border-soft: rgba(255, 255, 255, .05);
    --text: #d9e1ef;
    --muted: #7b879b;
    --accent: #7aa2ff;
    --purple: #8b7cff;
    --green: #4fd18b;
    --yellow: #e7bf58;
    --orange: #ee9657;
    --red: #ef7373;
    --shadow: 0 24px 70px rgba(0, 0, 0, .28);
    --radius: 18px;
    --bg-grid-line: rgba(255, 255, 255, .016);
}

/* ---- Тема: light ("бумажный" режим чтения) ---- */
:root[data-theme="light"] {
    --bg: #f4f2ec;
    --surface: rgba(255, 255, 255, .86);
    --surface-strong: rgba(255, 255, 255, .96);
    --border: rgba(20, 20, 20, .08);
    --border-soft: rgba(20, 20, 20, .05);
    --text: #262320;
    --muted: #6b6559;
    --accent: #3a5fd9;
    --purple: #6a4fc9;
    --green: #1f8a52;
    --yellow: #a9790a;
    --orange: #c2660f;
    --red: #c23a3a;
    --shadow: 0 16px 40px rgba(0, 0, 0, .08);
    --radius: 18px;
    --bg-grid-line: rgba(0, 0, 0, .025);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(900px 520px at 85% -5%, rgba(91, 140, 255, .11), transparent 62%),
        radial-gradient(700px 520px at -10% 25%, rgba(124, 108, 246, .08), transparent 64%),
        var(--bg);
    color: var(--text);
    line-height: 1.75;
    min-height: 100vh;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(var(--bg-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid-line) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

h1, h2, h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Читаемая колонка текста политики — узкая, с комфортными отступами */
.policy-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.policy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

.policy-card h1 { font-size: 26px; margin-bottom: 8px; }
.policy-card h2 { font-size: 18px; margin-top: 32px; margin-bottom: 10px; }
.policy-card h3 { font-size: 15px; margin-top: 20px; margin-bottom: 8px; }
.policy-card p, .policy-card li { color: var(--text); font-size: 14.5px; }
.policy-card ul, .policy-card ol { padding-left: 22px; margin: 10px 0; }
.policy-card .muted { color: var(--muted); font-size: 13px; }

.policy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 18px;
}

@media (max-width: 640px) {
    .policy-wrap { padding: 24px 14px 56px; }
    .policy-card { padding: 24px 18px; border-radius: 14px; }
    .policy-card h1 { font-size: 21px; }
}
