/* ==========================================================
   LEGAL PAGES — legal.css
   Shared styles for: Privacy Policy, Refund Policy,
   Data Deletion, Terms & Conditions, Support
   ========================================================== */

/* ── CSS Variables ──────────────────────────────────────── */
:root {
    --primary:       #6d3ccf;
    --primary-dark:  #4f24a7;
    --primary-soft:  #f3edff;
    --gold:          #d4af37;
    --gold-soft:     #f7ecd0;
    --text:          #161616;
    --muted:         #6f6b78;
    --white:         #ffffff;
    --bg:            #fcfbfe;
    --bg-soft:       #f8f6fc;
    --border:        #e8e1f2;
    --shadow:        0 16px 40px rgba(70,40,140,.10);
    --radius:        24px;
    --navH:          86px;
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.dm-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    height: var(--navH);
    display: flex;
    align-items: center;
}

.navbar-inner { gap: 32px; }

.brand-logo-img { height: 48px; width: auto; }

.desktop-nav { display: flex; align-items: center; gap: 4px; }

.desktop-nav .nav-link {
    font-size: .92rem;
    font-weight: 500;
    color: var(--text);
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.desktop-actions { margin-left: 12px; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

.mobile-toggle {
    background: none; border: none;
    font-size: 1.6rem;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
}

/* Mobile offcanvas */
.dm-offcanvas { max-width: 300px; }
.mobile-brand .brand-logo-img { height: 40px; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.mobile-menu-links a {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: background .2s;
}
.mobile-menu-links a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.mobile-utility { margin-top: 24px; }

/* ── HERO BANNER ─────────────────────────────────────────── */
.legal-hero {
    padding: 130px 0 60px;
    background:
        radial-gradient(circle at top right, rgba(109,60,207,.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
}

.legal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.legal-hero-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    margin-bottom: 14px;
}

.legal-hero-sub {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 600px;
}

.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
}
.legal-updated i { color: var(--primary); }

/* ── CONTENT AREA ────────────────────────────────────────── */
.legal-body {
    padding: 64px 0 80px;
}

.legal-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 48px;
    box-shadow: var(--shadow);
}

@media (max-width: 575.98px) {
    .legal-card { padding: 28px 20px; }
}

/* Section blocks */
.legal-section {
    margin-bottom: 44px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--border);
}
.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.legal-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-radius: 50%;
    font-size: .82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.legal-section p {
    color: #3a3547;
    line-height: 1.85;
    margin-bottom: 12px;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul, .legal-section ol {
    padding-left: 22px;
    color: #3a3547;
    line-height: 1.85;
}
.legal-section ul li, .legal-section ol li { margin-bottom: 8px; }

/* Contact info box */
.legal-contact-box {
    background: var(--primary-soft);
    border: 1px solid #ddd6f3;
    border-radius: 16px;
    padding: 28px 32px;
    margin-top: 16px;
}

.legal-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(109,60,207,.12);
    font-size: .95rem;
    color: var(--text);
}
.legal-contact-item:last-child { border-bottom: none; }
.legal-contact-item i {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(109,60,207,.12);
}
.legal-contact-item a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
}
.legal-contact-item a:hover { text-decoration: underline; }

/* Highlight notice */
.legal-notice {
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    border-left: 4px solid var(--gold);
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: .93rem;
    font-weight: 500;
    color: #5a4400;
    line-height: 1.7;
}
.legal-notice i { color: var(--gold); margin-right: 6px; }

/* Table of Contents */
.legal-toc {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 36px;
}
.legal-toc-title {
    font-size: .92rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
}
.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 24px;
}
@media (max-width: 575.98px) {
    .legal-toc ul { columns: 1; }
}
.legal-toc ul li { margin-bottom: 6px; }
.legal-toc ul li a {
    font-size: .88rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
}
.legal-toc ul li a:hover { text-decoration: underline; }

/* Support cards */
.support-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
}
.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(70,40,140,.14);
}

.support-card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-soft);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin: 0 auto 18px;
}

.support-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.support-card-text {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.support-btn:hover { background: var(--primary-dark); color: #fff; }

.support-btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.support-btn-outline:hover { background: var(--primary); color: #fff; }

/* Deletion steps */
.deletion-step {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.deletion-step:last-child { border-bottom: none; }
.deletion-step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}
.deletion-step-body { flex: 1; }
.deletion-step-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    font-size: .97rem;
}
.deletion-step-text {
    color: var(--muted);
    font-size: .91rem;
    line-height: 1.75;
    margin: 0;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
    background: #0e0c16;
    color: #bbb6c8;
    padding: 72px 0 0;
}

.footer-brand p {
    font-size: .92rem;
    line-height: 1.8;
    margin-top: 18px;
    color: #9e9ab0;
}

.footer-logo-link { display: inline-block; }
.footer-logo-img  { height: 44px; width: auto; filter: brightness(10); opacity: .9; }

.social-links { display: flex; gap: 10px; margin-top: 22px; }
.social-links a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #ccc9d9;
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.social-links a:hover { background: var(--primary); color: #fff; }

.footer-card { padding-top: 8px; }

.footer-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    padding: 0; margin: 0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #9e9ab0;
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s;
}
.footer-links a:hover { color: #fff; }

/* Legal links in footer */
.footer-legal-links {
    list-style: none;
    padding: 0; margin: 0;
}
.footer-legal-links li { margin-bottom: 8px; }
.footer-legal-links a {
    color: #9e9ab0;
    text-decoration: none;
    font-size: .87rem;
    transition: color .2s;
}
.footer-legal-links a:hover { color: #fff; }

.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.newsletter-form .form-control {
    flex: 1;
    min-width: 160px;
    border-radius: 12px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    padding: 10px 16px;
    font-size: .88rem;
}
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form .form-control:focus {
    background: rgba(255,255,255,.1);
    border-color: var(--primary);
    box-shadow: none;
    color: #fff;
    outline: none;
}
.newsletter-form button {
    padding: 10px 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.newsletter-form button:hover { background: var(--primary-dark); }

.footer-bottom {
    margin-top: 56px;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .84rem;
    color: #7b7789;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a {
    color: #7b7789;
    text-decoration: none;
    font-size: .84rem;
    transition: color .2s;
}
.footer-bottom-links a:hover { color: #fff; }

/* ── REVEAL ANIMATION ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
