/* ============================================================
   Privacy Policy Page Styles — Electric Blue
   Legal content page with optimal reading width
   ============================================================ */

/* --- Hero (compact, blends with navbar) --- */
.privacy-hero {
    background: linear-gradient(135deg, var(--color-brand-900) 0%, var(--color-brand-800) 50%, var(--color-brand-800) 100%);
    color: #ffffff;
    padding: 3rem 0 2.5rem;
    margin-top: -56px;
    padding-top: calc(56px + 2.5rem);
    position: relative;
    overflow: hidden;
}

.privacy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.privacy-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    z-index: 1;
}

/* Wave divider */
.privacy-hero .wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    z-index: 3;
}

.privacy-hero .wave-divider svg {
    display: block;
    width: 100%;
    height: 56px;
}

.privacy-hero .wave-fill {
    fill: var(--color-white);
}

.privacy-hero-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.privacy-hero-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin: 0 auto var(--space-4);
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.privacy-hero h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #90e0ef 60%, #48cae4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #ffffff;
    margin-bottom: var(--space-3);
}

.privacy-hero-subtitle {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.6;
}

.privacy-hero-subtitle strong {
    color: rgba(255, 255, 255, 0.85);
}

/* --- Breadcrumb --- */
.privacy-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) 0;
    font-size: var(--text-sm);
}

.privacy-breadcrumb a {
    color: var(--color-brand-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.privacy-breadcrumb a:hover {
    color: var(--color-brand-700);
    text-decoration: underline;
}

.privacy-breadcrumb__sep {
    color: var(--color-gray-300);
    font-size: var(--text-xs);
}

.privacy-breadcrumb__current {
    color: var(--color-gray-700);
    font-weight: 500;
}

/* --- Sections --- */
.privacy-section {
    padding: var(--space-10) 0;
}

.privacy-section--white {
    background: var(--section-bg-white);
}

.privacy-section--tinted {
    background: var(--color-brand-50);
}

/* --- Content Column --- */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

/* --- TOC --- */
.privacy-toc-title {
    font-size: var(--text-h3);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--space-5);
    text-align: center;
}

.privacy-toc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2) var(--space-6);
}

.privacy-toc-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    color: var(--color-brand-600);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.privacy-toc-link:hover {
    color: var(--color-brand-700);
    text-decoration: underline;
}

.privacy-toc-link i {
    font-size: 0.6em;
    color: var(--color-brand-400);
}

/* --- Headings --- */
.privacy-heading {
    font-size: var(--text-h2);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--space-4);
    scroll-margin-top: 80px;
}

.privacy-subheading {
    font-size: var(--text-h3);
    font-weight: 600;
    color: var(--color-gray-800);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

/* --- Typography --- */
.privacy-content p {
    font-size: var(--text-body);
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.privacy-content ul {
    padding-left: 1.5rem;
    margin-bottom: var(--space-4);
    list-style: disc;
}

.privacy-content ol {
    padding-left: 1.5rem;
    margin-bottom: var(--space-4);
    list-style: decimal;
}

.privacy-content li {
    font-size: var(--text-body);
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-2);
}

.privacy-content li strong {
    color: var(--color-gray-900);
}

.privacy-content a {
    color: var(--color-brand-600);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.privacy-content a:hover {
    color: var(--color-brand-700);
    text-decoration: underline;
}

/* Lead intro paragraph */
.privacy-content .privacy-lead {
    font-size: 1.1rem;
    color: var(--color-gray-700);
    line-height: 1.8;
}

/* --- Note (replaces text-muted) --- */
.privacy-note {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    line-height: 1.6;
    margin-top: var(--space-3);
}

/* --- Contact Card --- */
.privacy-contact-card {
    background: var(--color-white);
    border: var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-8);
    margin-top: var(--space-5);
}

.privacy-contact-card p {
    margin-bottom: var(--space-2);
    font-size: var(--text-body);
    color: var(--color-gray-600);
}

.privacy-contact-card p:last-child {
    margin-bottom: 0;
}

.privacy-contact-card strong {
    color: var(--color-gray-900);
    font-size: 1.05rem;
}

.privacy-contact-card i {
    color: var(--color-brand-600);
    width: 20px;
    text-align: center;
    margin-right: var(--space-2);
}

.privacy-contact-card a {
    color: var(--color-brand-600);
    text-decoration: none;
    font-weight: 500;
}

.privacy-contact-card a:hover {
    color: var(--color-brand-700);
    text-decoration: underline;
}

/* --- CTA Section --- */
.privacy-cta {
    padding: 3rem 0;
    background: var(--color-brand-50);
}

.privacy-cta-card {
    background: linear-gradient(135deg, var(--color-brand-900) 0%, var(--color-brand-800) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.privacy-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.04) 0%, transparent 60%);
    pointer-events: none;
}

.privacy-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.privacy-cta-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.privacy-cta-card p {
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-size: 1rem;
}

.privacy-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* --- Buttons --- */
.privacy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-sans);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.privacy-btn--light {
    background: var(--color-white);
    color: var(--color-gray-900);
}

.privacy-btn--light:hover {
    background: var(--color-gray-100);
    color: var(--color-gray-900);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 255, 255, .15);
}

.privacy-btn--outline-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.privacy-btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .privacy-hero {
        padding: calc(56px + 2rem) 0 calc(2rem + 36px);
    }

    .privacy-hero .wave-divider svg {
        height: 36px;
    }

    .privacy-hero h1 {
        font-size: 1.75rem;
    }

    .privacy-toc-grid {
        grid-template-columns: 1fr;
    }

    .privacy-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .privacy-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .privacy-cta-card {
        padding: 2rem 1.5rem;
    }

    .privacy-cta-card h2 {
        font-size: 1.4rem;
    }

    .privacy-contact-card {
        padding: var(--space-5);
    }

    .privacy-section {
        padding: var(--space-8) 0;
    }
}

@media (max-width: 576px) {
    .privacy-hero {
        padding: calc(56px + 1.5rem) var(--space-3) calc(1.5rem + 28px);
    }

    .privacy-hero .wave-divider svg {
        height: 28px;
    }
}

/* Landscape phone — reduce CTA spacing */
@media (max-height: 500px) {
    .privacy-cta-card {
        padding: 1.5rem;
    }
}

/* --- Dark Mode Overrides --- */
[data-theme="dark"] .privacy-btn--light {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

[data-theme="dark"] .privacy-btn--light:hover {
    background: #475569;
    color: #ffffff;
}

[data-theme="dark"] .privacy-contact-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .privacy-cta-card {
    background: linear-gradient(135deg, #0f172a 0%, #1a2744 100%);
    border-color: #334155;
}
