/* Inner pages (FAQ, guide, terms, delete account): homepage look.
   Loaded after each page's inline <style>, so these rules win. */

body {
    background:
        radial-gradient(700px 380px at 85% -60px, rgba(59, 130, 246, 0.12), transparent 70%),
        radial-gradient(500px 300px at 0% 0%, rgba(6, 182, 212, 0.06), transparent 70%),
        white;
    background-repeat: no-repeat;
}

/* Page wrapper: keep side gutters (the inline styles zeroed them) */
.legal-content.container,
.how-to-content.container {
    padding: 130px 24px 90px;
}

.legal-content.container {
    max-width: 820px;
}

/* Page headers */
.faq-page-header,
.legal-page-header,
.how-to-header {
    text-align: center;
    margin-bottom: 44px;
}

.faq-page-header h1,
.legal-page-header h1,
.how-to-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0 0 12px;
}

.faq-page-header .section-subtitle,
.legal-page-header .section-subtitle,
.how-to-header .section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ── FAQ ─────────────────────────────────────────── */
.faq-section {
    margin-bottom: 28px;
}

.faq-section h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--rrugo-blue);
    border: 0;
    padding: 0;
    margin: 0 0 12px;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.faq-item.active {
    border-color: #bfd3ff;
}

.faq-question {
    padding: 16px 18px;
    gap: 14px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.faq-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef3ff;
    color: var(--rrugo-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.faq-answer {
    padding: 0 18px 18px;
    font-size: 15px;
    line-height: 1.65;
}

/* ── Terms / delete account ──────────────────────── */
.legal-section {
    border-radius: 24px;
    padding: 36px;
    margin-bottom: 20px;
    box-shadow: none;
}

.legal-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    letter-spacing: -0.4px;
}

.legal-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
}

.highlight-box {
    border-radius: 0 14px 14px 0;
}

/* ── How-to guide ────────────────────────────────── */
.sidebar-link {
    border-radius: 999px;
}

.step-card {
    border-radius: 24px;
}

.tutorial-title {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.4px;
}

/* ── Phones ──────────────────────────────────────── */
@media (max-width: 767px) {
    .legal-content.container,
    .how-to-content.container {
        padding: 100px 16px 64px;
    }

    .faq-page-header,
    .legal-page-header,
    .how-to-header {
        margin-bottom: 28px;
    }

    .faq-page-header h1,
    .legal-page-header h1,
    .how-to-header h1 {
        font-size: 30px;
        letter-spacing: -0.5px;
    }

    .faq-page-header .section-subtitle,
    .legal-page-header .section-subtitle,
    .how-to-header .section-subtitle {
        font-size: 15px;
    }

    .faq-section {
        margin-bottom: 20px;
    }

    .faq-item {
        border-radius: 14px;
        margin-bottom: 8px;
    }

    .faq-question {
        padding: 13px 14px;
        font-size: 14.5px;
    }

    .faq-toggle {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }

    .faq-answer {
        padding: 0 14px 14px;
        font-size: 14px;
    }

    .legal-section {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .legal-section h2 {
        font-size: 21px;
    }

    .legal-section h3 {
        font-size: 16px;
    }

    .legal-section p,
    .legal-section li {
        font-size: 14.5px;
    }

    .how-to-sidebar {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .how-to-sidebar::-webkit-scrollbar {
        display: none;
    }

    .sidebar-link {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .tutorial-title {
        font-size: 24px;
    }
}
