/* ============================================
   Общие стили для юридических страниц
   60seconds.by — privacy.html / offer.html / terms.html
   ============================================ */

:root {
    --bg-primary: #11171a;
    --bg-secondary: #171f24;
    --bg-card: #1e282e;
    --text-primary: #ffffff;
    --text-secondary: #b0b8be;
    --accent: #11ea4f;
    --accent-hover: #0fcc44;
    --border: #2a363d;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.light-theme {
    --bg-primary: #f7f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a555b;
    --accent: #0fbf3f;
    --accent-hover: #0da336;
    --border: #e0e6e9;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;

    /* Тот же фон, что на главной: два радиальных градиента + точечный паттерн */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(17, 234, 79, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(17, 234, 79, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, var(--border) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 24px 24px;
    background-attachment: fixed;
}

body.light-theme {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(15, 191, 63, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(15, 191, 63, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, var(--border) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 24px 24px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== ШАПКА ===== */
header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
main {
    flex: 1;
    padding: 50px 0;
}

.doc-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 55px 60px;
    box-shadow: var(--shadow);
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s;
}

.btn-back:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateX(-3px);
}

/* ===== ТИПОГРАФИКА ДОКУМЕНТА ===== */
.doc-card h1 {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.doc-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.doc-card h2 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--accent);
    font-weight: 700;
    line-height: 1.3;
}

.doc-card h3 {
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 700;
}

.doc-card p,
.doc-card li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 1rem;
}

.doc-card ul {
    padding-left: 22px;
    margin-bottom: 20px;
}

.doc-card li {
    margin-bottom: 8px;
}

.doc-card li::marker {
    color: var(--accent);
}

.doc-card strong {
    color: var(--text-primary);
    font-weight: 700;
}

.doc-card a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.doc-card a:hover {
    border-bottom-color: var(--accent);
}

/* ===== ФУТЕР ===== */
footer {
    background: var(--bg-secondary);
    padding: 30px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    transition: background-color 0.3s;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .header-inner {
        height: auto;
        padding: 15px 0;
        flex-direction: column;
        gap: 10px;
    }

    main {
        padding: 30px 0;
    }

    .doc-card {
        padding: 30px 22px;
        border-radius: 16px;
    }

    .doc-card h1 {
        font-size: 1.6rem;
    }

    .doc-card h2 {
        font-size: 1.2rem;
        margin-top: 30px;
    }

    .doc-card h3 {
        font-size: 1.05rem;
    }

    .doc-card p,
    .doc-card li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .doc-card {
        padding: 25px 18px;
    }

    .doc-card h1 {
        font-size: 1.4rem;
    }
}