/* ============================================
   SPENDORA PRIVACY POLICY - STYLES
   ============================================ */

/* CSS Variables */
:root {
    /* Colors - Light Mode */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --success: #10b981;
    --success-bg: #d1fae5;
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    
    /* Backgrounds */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-highlight: #f1f5f9;
    
    /* Text */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Borders */
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-highlight: #334155;
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: #334155;
    
    --success-bg: #064e3b;
    --danger-bg: #7f1d1d;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   BASE STYLES
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    transition: var(--transition);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-highlight);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.policy-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    border: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    .policy-card {
        padding: 24px;
        border-radius: var(--border-radius);
    }
}

.effective-date {
    margin-bottom: 32px;
}

.badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ============================================
   POLICY SECTIONS
   ============================================ */

.policy-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.policy-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.policy-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.section-icon {
    font-size: 1.5rem;
}

.policy-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.policy-section p:last-child {
    margin-bottom: 0;
}

/* Highlight Box */
.highlight-box {
    background: var(--bg-highlight);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin: 20px 0;
}

.highlight-box.success {
    border-left-color: var(--success);
    background: var(--success-bg);
}

.highlight-box p {
    margin: 0;
    color: var(--text-primary);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

@media (max-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-highlight);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.feature-item.no-collect {
    border-left: 3px solid var(--danger);
}

.feature-item.secure {
    border-left: 3px solid var(--success);
}

.feature-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Check Lists */
.check-list {
    list-style: none;
    margin: 20px 0;
}

.check-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.check-list.negative li::before {
    content: '✕';
    background: var(--danger);
}

.check-list.positive li::before {
    content: '✓';
    background: var(--success);
}

/* Export Formats */
.export-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.format-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-highlight);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.format-icon {
    font-size: 1.25rem;
}

/* Note */
.note {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-highlight);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.contact-icon {
    font-size: 1.25rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Store Button */
.store-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.store-button:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-highlight);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
    .header-content {
        padding: 12px 0;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        font-size: 28px;
    }
    
    .main {
        padding: 24px 0;
    }
    
    .policy-section h2 {
        font-size: 1.25rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        width: 100%;
    }
    
    .store-button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-section {
    animation: fadeIn 0.5s ease forwards;
}

.policy-section:nth-child(2) { animation-delay: 0.1s; }
.policy-section:nth-child(3) { animation-delay: 0.15s; }
.policy-section:nth-child(4) { animation-delay: 0.2s; }
.policy-section:nth-child(5) { animation-delay: 0.25s; }
.policy-section:nth-child(6) { animation-delay: 0.3s; }
.policy-section:nth-child(7) { animation-delay: 0.35s; }
.policy-section:nth-child(8) { animation-delay: 0.4s; }
.policy-section:nth-child(9) { animation-delay: 0.45s; }

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .header,
    .footer,
    .theme-toggle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .policy-card {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .highlight-box {
        border: 1px solid #ddd;
    }
}
