/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0B1028;
    --bg-secondary: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: #d4d4d4;
    --text-muted: #8a8aa3;
    --accent-primary: #7c3aed;
    --accent-secondary: #8B5CF6;
    --accent-tertiary: #EC4899;
    --border-color: rgba(124, 58, 237, 0.35);
    --border-hover: rgba(124, 58, 237, 0.6);
    --gradient-start: #3B82F6;
    --gradient-mid: #8B5CF6;
    --gradient-end: #EC4899;
    --shadow-glow: rgba(139, 92, 246, 0.3);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Animated Stars Background */
.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20% 30%, #fff, transparent),
        radial-gradient(2px 2px at 60% 70%, #fff, transparent),
        radial-gradient(1px 1px at 50% 50%, #fff, transparent),
        radial-gradient(1px 1px at 80% 10%, #fff, transparent),
        radial-gradient(2px 2px at 90% 40%, #fff, transparent),
        radial-gradient(1px 1px at 33% 60%, #fff, transparent),
        radial-gradient(1px 1px at 10% 80%, #fff, transparent),
        radial-gradient(2px 2px at 40% 90%, #fff, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: starsMove 60s linear infinite;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

@keyframes starsMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: linear-gradient(135deg, rgba(11, 16, 40, 0.95), rgba(26, 31, 58, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    background: rgba(26, 31, 58, 0.4);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

/* Intro Section */
.intro-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-style: italic;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Table of Contents */
.table-of-contents {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
}

.table-of-contents h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent-secondary);
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin: 10px 0;
}

.table-of-contents a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.table-of-contents a:hover {
    color: var(--accent-secondary);
    background: rgba(124, 58, 237, 0.15);
    transform: translateX(5px);
}

/* Policy Sections */
.policy-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.policy-section:last-of-type {
    border-bottom: none;
}

.policy-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--accent-secondary);
    scroll-margin-top: 100px;
}

.policy-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.policy-section p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.policy-section ul {
    margin: 15px 0 15px 30px;
    color: var(--text-secondary);
}

.policy-section li {
    margin: 10px 0;
    line-height: 1.7;
    font-size: 1.05rem;
}

.policy-section strong {
    color: var(--accent-secondary);
    font-weight: 700;
}

.policy-section a {
    color: var(--accent-secondary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.policy-section a:hover {
    color: var(--accent-tertiary);
    border-bottom-color: var(--accent-tertiary);
}

/* Contact Info */
.contact-info {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1.05rem;
}

.contact-info a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--accent-tertiary);
}

/* Acknowledgment Section */
.acknowledgment-section {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
}

.acknowledgment {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(11, 16, 40, 0.95), rgba(26, 31, 58, 0.95));
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    color: var(--text-muted);
    margin: 5px 0;
    font-size: 0.95rem;
}

.footer-tagline {
    color: var(--text-secondary);
    font-style: italic;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow-glow);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-glow);
}

.scroll-to-top.visible {
    display: flex;
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .content-wrapper {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .logo {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .header {
        padding: 30px 0;
    }

    .policy-section h2 {
        font-size: 1.6rem;
    }

    .policy-section h3 {
        font-size: 1.2rem;
    }

    .policy-section p,
    .policy-section li {
        font-size: 1rem;
    }

    .table-of-contents {
        padding: 20px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .intro-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }

    .content-wrapper {
        padding: 20px 15px;
    }

    .policy-section h2 {
        font-size: 1.4rem;
    }

    .policy-section h3 {
        font-size: 1.1rem;
    }

    .table-of-contents h2 {
        font-size: 1.1rem;
    }

    .acknowledgment {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .stars-background,
    .scroll-to-top,
    .header,
    .footer {
        display: none;
    }

    .main-content {
        padding: 0;
    }

    .content-wrapper {
        background: white;
        color: black;
        border: none;
        box-shadow: none;
    }

    .policy-section {
        page-break-inside: avoid;
    }
}

