﻿/* ============================================
   E-MAZADE - PRIVACY & TERMS MODERN STYLES
   ============================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-subtle: #eff6ff;
    --surface: #ffffff;
    --background: #f8fafc;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --accent-orange: #f97316;
    --accent-red: #dc2626;
    --accent-purple: #7c3aed;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--background);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   HERO
   ============================================ */

.privacy-hero {
    position: relative;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    color: white;
    padding: 5rem 0 4rem;
    overflow: hidden;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a5b4fc;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    top: -150px;
    left: -100px;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: var(--accent-purple);
    bottom: -100px;
    right: -100px;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */

.privacy-main {
    padding: 3rem 0;
}

.policy-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

    .policy-section:last-of-type {
        border-bottom: none;
        margin-bottom: 2rem;
    }

/* Sidebar */
.section-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.section-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

    .section-icon.icon-orange {
        background: linear-gradient(135deg, var(--accent-orange) 0%, #ea580c 100%);
        box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25);
    }

    .section-icon.icon-red {
        background: linear-gradient(135deg, var(--accent-red) 0%, #b91c1c 100%);
        box-shadow: 0 8px 24px rgba(220, 38, 38, 0.25);
    }

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   ACCORDION
   ============================================ */

.section-content {
    min-width: 0;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

    .accordion-item:hover {
        border-color: #cbd5e1;
    }

    .accordion-item.open {
        box-shadow: var(--shadow-md);
        border-color: transparent;
    }

.accordion-trigger {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition);
}

.trigger-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: all var(--transition);
}

.accordion-item.open .trigger-icon {
    background: var(--primary);
    color: white;
}

.trigger-title {
    flex: 1;
    line-height: 1.4;
}

.trigger-chevron {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: all var(--transition);
    flex-shrink: 0;
}

.accordion-item.open .trigger-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.open .accordion-panel {
    max-height: 800px;
}

.accordion-body {
    padding: 0 1.5rem 1.5rem 4.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

    .accordion-body p {
        margin-bottom: 1rem;
    }

        .accordion-body p:last-child {
            margin-bottom: 0;
        }

/* Content Lists */
.content-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

    .content-list li {
        position: relative;
        padding-left: 1.5rem;
    }

        .content-list li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.6em;
            width: 6px;
            height: 6px;
            background: var(--primary-light);
            border-radius: 50%;
        }

    .content-list.nested {
        margin-top: 0.5rem;
        margin-left: 0.5rem;
    }

        .content-list.nested li::before {
            background: var(--text-muted);
            width: 5px;
            height: 5px;
        }

/* ============================================
   ACKNOWLEDGMENT SECTION
   ============================================ */

.acknowledgment-section {
    margin-top: 2rem;
}

.ack-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ack-card {
    padding: 2.5rem;
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

    .ack-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px);
        border-color: transparent;
    }

.ack-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.ack-agreement .ack-icon {
    background: var(--primary-subtle);
    color: var(--primary);
}

.ack-consequences .ack-icon {
    background: #fef2f2;
    color: var(--accent-red);
}

.ack-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.ack-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Consequence List */
.consequence-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

    .consequence-list li {
        display: flex;
        align-items: center;
        gap: 0.875rem;
        font-size: 0.9375rem;
        color: var(--text-secondary);
    }

.consequence-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-red);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Ack Banner */
.ack-banner {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-xl);
    border: 1px solid #fbbf24;
}

.ack-banner-icon {
    width: 48px;
    height: 48px;
    background: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ack-banner-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.ack-banner-content p {
    font-size: 0.9375rem;
    color: #a16207;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

    .ack-banner-content p:last-child {
        margin-bottom: 0;
    }

.ack-highlight {
    font-weight: 600;
    color: #92400e;
}

/* ============================================
   FOOTER
   ============================================ */

.privacy-footer {
    background: var(--text);
    color: var(--text-muted);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 768px) {
    .privacy-hero {
        padding: 7rem 0 5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .policy-section {
        grid-template-columns: 260px 1fr;
        gap: 3rem;
    }

    .ack-grid {
        grid-template-columns: 1fr 1fr;
    }

    .accordion-body {
        padding-left: 5rem;
    }
}

@media (min-width: 1024px) {
    .privacy-main {
        padding: 4rem 0;
    }

    .policy-section {
        grid-template-columns: 300px 1fr;
        gap: 4rem;
    }

    .ack-banner {
        padding: 2.5rem 3rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .sidebar-sticky {
        position: static;
    }

    .accordion-body {
        padding-left: 1.5rem;
    }

    .ack-banner {
        flex-direction: column;
        text-align: center;
    }

    .ack-banner-icon {
        margin: 0 auto;
    }
}

/* RTL Support */
[dir="rtl"] .trigger-title {
    text-align: right;
}

[dir="rtl"] .accordion-body {
    padding-left: 1.5rem;
    padding-right: 4.5rem;
}

[dir="rtl"] .content-list li {
    padding-left: 0;
    padding-right: 1.5rem;
}

    [dir="rtl"] .content-list li::before {
        left: auto;
        right: 0;
    }

[dir="rtl"] .content-list.nested {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .consequence-list li {
    flex-direction: row-reverse;
}

@media (min-width: 768px) {
    [dir="rtl"] .accordion-body {
        padding-left: 1.5rem;
        padding-right: 5rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
