/* ===== Design Tokens ===== */
:root {
    --color-bg: #0a0a1a;
    --color-primary: #7c3aed;
    --color-primary-light: #a78bfa;
    --color-accent: #06b6d4;
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-glass: rgba(255, 255, 255, 0.05);
    --color-glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --radius-lg: 20px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    line-height: 1.7;
}

/* ===== Background ===== */
.bg-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 26, 0.95) 0%,
        rgba(10, 10, 26, 0.98) 100%
    );
    z-index: 0;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 16px 24px;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-glass-border);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--color-primary-light);
    transform: translateX(-4px);
}

/* ===== Content ===== */
.content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 100px;
}

.policy-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeIn 0.8s ease-out;
}

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

/* ===== Typography ===== */
.policy-card h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-text) 30%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.meta a {
    color: var(--color-accent);
    text-decoration: none;
}

.meta a:hover {
    text-decoration: underline;
}

.policy-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary-light);
    margin-top: 36px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.policy-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: 24px;
    margin-bottom: 10px;
}

.policy-card p {
    margin-bottom: 14px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.policy-card a {
    color: var(--color-accent);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s;
}

.policy-card a:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

.policy-card ul,
.policy-card ol {
    margin-bottom: 14px;
    padding-left: 24px;
}

.policy-card li {
    margin-bottom: 8px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.policy-card ul ul {
    margin-top: 8px;
    margin-bottom: 0;
}

.copyright {
    margin-top: 40px;
    text-align: center;
    color: var(--color-text-muted);
    opacity: 0.6;
    font-size: 0.85rem;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    opacity: 0.5;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .policy-card {
        padding: 28px 20px;
    }
    .policy-card h1 {
        font-size: 1.6rem;
    }
    .content-wrapper {
        padding: 24px 16px 80px;
    }
}
