/**
 * @license
 * Copyright (c) 2026 Elson Lleshi
 * All Rights Reserved.
 * SPDX-License-Identifier: UNLICENSED
 *
 * Light theme — content-heavy pages: FAQ, Terms, Privacy.
 */

/* ── Terms / Privacy ──────────────────────────────────────────────────────── */
.terms-section { padding: 64px 0; }
.terms-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px 48px;
    box-shadow: var(--shadow);
    line-height: 1.75;
    color: var(--text);
}
.terms-container h2 {
    color: var(--heading);
    font-size: 1.45rem;
    margin: 30px 0 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}
.terms-container h2:first-child {
    margin-top: 0;
    font-size: 1.9rem;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 12px;
}
.terms-container p { margin: 0 0 14px; color: var(--text); }
.terms-container ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.terms-container li { margin-bottom: 8px; color: var(--text); }
.terms-container a { color: var(--gold-dark); font-weight: 600; }
.terms-container a:hover { text-decoration: underline; }
.terms-container strong { color: var(--heading); }
.data-label { font-weight: 700; color: var(--heading); }
.terms-date { margin-top: 30px; font-size: 0.9rem; color: var(--muted); text-align: right; font-style: italic; }

/* ── FAQ page ─────────────────────────────────────────────────────────────── */
.faq-page { padding: 64px 0; }
.faq-intro { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.faq-container { max-width: 980px; margin: 0 auto; }

.category-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.category-button {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}
.category-button:hover { border-color: var(--gold); color: var(--navy); }
.category-button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.faq-category { display: none; margin-bottom: 32px; }
.faq-category.active { display: block; }
.category-title { color: var(--heading); font-size: 1.4rem; margin-bottom: 18px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }

.faq-accordion { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.faq-item:hover { border-color: rgba(200,162,76,0.5); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; cursor: pointer; user-select: none; }
.faq-question h4 { margin: 0; font-size: 1.05rem; color: var(--heading); font-weight: 700; }
.faq-question i { color: var(--gold); transition: transform 0.3s ease; margin-left: 14px; flex-shrink: 0; }
.faq-item.active { border-color: var(--gold); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 24px; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.active .faq-answer { max-height: 1500px; padding: 0 24px 20px; }
.faq-answer p { margin: 0 0 10px; line-height: 1.7; color: var(--text); }
.faq-answer ul { list-style: disc; padding-left: 22px; margin: 6px 0 12px; }
.faq-answer li { margin-bottom: 6px; color: var(--text); }
.faq-answer strong { color: var(--heading); }
.faq-answer a { color: var(--gold-dark); font-weight: 600; }
.faq-answer a:hover { text-decoration: underline; }

.faq-not-found { display: none; text-align: center; padding: 30px; color: var(--muted); }
.faq-not-found.visible { display: block; }

.faq-buttons { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

@media (max-width: 768px) {
    .terms-container { padding: 30px 22px; }
    .terms-container h2 { font-size: 1.25rem; }
    .terms-container h2:first-child { font-size: 1.55rem; }
    .faq-question { padding: 15px 18px; }
    .faq-question h4 { font-size: 0.98rem; }
    .faq-item.active .faq-answer { padding: 0 18px 16px; }
}
