/* Privacy page styles - Theme-aware design for MiraOPT */

/* Light theme (default) */
:root {
    --bg: #f9fafb;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --accent: #168c72;
    --border: #e5e7eb;
    --shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --toggle-bg: #f3f4f6;
    --toggle-hover: #e5e7eb;
    --toggle-icon: #374151;
}

/* Dark theme */
[data-theme="dark"] {
    --bg: #111827;
    --surface: #111827;
    --text: #f9fafb;
    --muted: #9ca3af;
    --accent: #168c72;
    --border: #374151;
    --shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --toggle-bg: #1f2937;
    --toggle-hover: #374151;
    --toggle-icon: #f9fafb;
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.6;
    padding: 60px 20px;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.privacy-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.privacy-header {
    text-align: center;
    padding: 56px 32px 32px;
    background: var(--surface);
    position: relative;
    transition: background-color 0.3s ease;
}

.privacy-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: opacity 0.3s ease;
}

.privacy-logo img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.privacy-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: var(--text);
    transition: color 0.3s ease;
}

.privacy-title::before {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto 16px;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.privacy-subtitle {
    font-size: 16px;
    color: var(--muted);
    transition: color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--toggle-bg);
    color: var(--toggle-icon);
    cursor: pointer;
    transition: all 180ms cubic-bezier(.2,.8,.2,1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.theme-toggle:hover {
    background: var(--toggle-hover);
    border-color: var(--accent);
    transform: scale(1.05);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 140, 114, 0.3);
}

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

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

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

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

.privacy-content {
    padding: 48px;
}

.privacy-section {
    margin-bottom: 40px;
    padding: 0 8px;
}

.privacy-section:last-of-type {
    margin-bottom: 0;
}

.privacy-section h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 14px;
    padding-left: 20px;
    color: var(--text);
    position: relative;
    transition: color 0.3s ease;
}

.privacy-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    transition: background-color 0.3s ease;
}

.privacy-section p {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.privacy-section p strong {
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s ease;
}

.privacy-section p br + p {
    margin-top: 8px;
}

.privacy-footer {
    text-align: center;
    padding: 24px 48px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: auto;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.privacy-footer p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.privacy-links {
    font-size: 15px;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.privacy-links a {
    color: var(--accent);
    text-decoration: none;
    transition: color 180ms cubic-bezier(.2,.8,.2,1);
    font-weight: 500;
}

.privacy-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Language Selector */
.privacy-lang-selector {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 8px;
    z-index: 100;
}

.privacy-lang-selector .lang-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 180ms cubic-bezier(.2,.8,.2,1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.privacy-lang-selector .lang-btn:hover {
    background: rgba(22, 140, 114, 0.08);
    color: var(--accent);
    transform: scale(1.1);
}

.privacy-lang-selector .lang-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(22, 140, 114, 0.2);
}

/* Responsive */
@media (max-width: 600px) {
    .privacy-container {
        margin: 16px;
        border-radius: 12px;
    }

    .privacy-header {
        padding: 48px 24px 24px;
    }

    .privacy-title {
        font-size: 28px;
    }

    .privacy-content {
        padding: 24px;
    }

    .privacy-section {
        margin-bottom: 32px;
    }

    .privacy-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }

    body {
        padding: 24px 16px;
    }

    .theme-toggle {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}