/* ===================================================
   SleepSense Privacy Policy — Premium Design System
   Mesh Gradients • Glassmorphism • Sticky Navigation
   =================================================== */

:root {
    /* Color Palette */
    --bg-primary: #0a0a12;
    --bg-secondary: #11111f;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-teal: #14b8a6;

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.45);

    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Background Effects --- */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    filter: blur(100px);
    background: radial-gradient(circle at 50% 50%, #1a1a2e, #0a0a12);
}

.mesh-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    opacity: 0.4;
    animation: blob-drift 20s infinite alternate linear;
}

.mesh-blob--1 {
    background: var(--accent-purple);
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.mesh-blob--2 {
    background: var(--accent-blue);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.mesh-blob--3 {
    background: var(--accent-pink);
    top: 40%;
    left: 60%;
    width: 400px;
    height: 400px;
    animation-duration: 18s;
}

.mesh-blob--4 {
    background: var(--accent-orange);
    bottom: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    opacity: 0.2;
}

@keyframes blob-drift {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 50px) scale(1.1);
    }
}

.grain-overlay {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3BaseFilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='0.05'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.stars {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0.3;
    animation: twinkle 4s infinite alternate ease-in-out;
}

@keyframes twinkle {
    0% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* --- Navigation --- */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--transition);
    background: rgba(10, 10, 18, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-bar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 18, 0.65);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-title {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #fff;
}

/* --- Hero --- */
.hero {
    padding: 160px 20px 80px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* .hero-logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
}

.hero-logo-glow {
    position: absolute;
    inset: -20px;
    background: var(--accent-purple);
    filter: blur(40px);
    opacity: 0.3;
    border-radius: 50%;
}

.hero-logo {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
} */

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-chips {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.chip-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}



/* --- Trust Strip --- */
.trust-strip {
    padding: 60px 0;
}

.trust-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 40px;
}

.trust-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trust-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
}

.trust-icon {
    width: 24px;
    height: 24px;
}

.trust-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.trust-detail {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* --- Main Layout --- */
.policy-main {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
}

.policy-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

/* --- Table of Contents --- */
.toc {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    font-weight: 700;
}

.toc-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.toc-num {
    font-size: 0.7rem;
    opacity: 0.5;
    font-family: monospace;
}

.toc-link:hover {
    background: var(--glass-bg);
    color: #fff;
}

.toc-link.active {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    font-weight: 600;
}

/* --- Content & Sections --- */
.policy-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.policy-section {
    padding-top: 20px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-purple);
}

.card-accent--green {
    background: var(--accent-green);
}

.card-accent--blue {
    background: var(--accent-blue);
}

.card-accent--purple {
    background: var(--accent-purple);
}

.card-accent--orange {
    background: var(--accent-orange);
}

.card-accent--pink {
    background: var(--accent-pink);
}

.card-accent--teal {
    background: var(--accent-teal);
}

.section-num {
    font-family: monospace;
    font-size: 0.9rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 8px;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
    margin: 32px 0 16px;
    color: #fff;
}

p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* --- Info Cards --- */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.info-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    color: var(--accent-purple);
}

.info-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.info-card span {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* --- Denied Grid --- */
.denied-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.denied-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.denied-x {
    width: 16px;
    height: 16px;
    color: #ef4444;
}

/* --- Callout --- */
.callout {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 32px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.callout--green {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.1);
}

.callout--blue {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.1);
}

.callout--purple {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.1);
}

.callout-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.callout--green .callout-icon {
    color: var(--accent-green);
}

.callout--blue .callout-icon {
    color: var(--accent-blue);
}

.callout--purple .callout-icon {
    color: var(--accent-purple);
}

.callout strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.callout span {
    color: var(--text-secondary);
}

/* --- Lists --- */
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.check-list li::before {
    content: "✓";
    color: var(--accent-green);
    font-weight: bold;
}

.tech-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.tech-pill {
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tech-sep {
    opacity: 0.3;
    margin: 0 4px;
}

/* --- Rights Grid --- */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.right-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
}

.right-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-highlight);
}

.right-svg {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--accent-pink);
    margin-left: auto;
    margin-right: auto;
}

/* --- Contact Block --- */
.contact-block {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.contact-email-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--accent-pink);
    color: #fff;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

.contact-email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.4);
}

.contact-email-btn svg {
    width: 20px;
    height: 20px;
}

.contact-meta {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* --- Footer --- */
.footer {
    padding: 100px 20px 60px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.footer-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-tagline {
    color: var(--text-tertiary);
    margin-bottom: 40px;
}

.footer-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 40px;
}

.footer-meta {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.footer-sep {
    margin: 0 8px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .policy-layout {
        grid-template-columns: 1fr;
    }

    .toc {
        display: none;
    }

    .trust-strip-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3rem;
    }
}

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

    .hero h1 {
        font-size: 2.25rem;
    }

    .nav-links {
        display: none;
    }

    .card {
        padding: 24px;
    }

    .rights-grid {
        grid-template-columns: 1fr;
    }
}