:root {
    --primary-color: #2e5cff;
    --primary-glow: rgba(46, 92, 255, 0.2);
    --secondary-color: #0bd18a;
    --text-main: #1e293b;
    --text-muted: #475569;
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --border-color: rgba(148, 163, 184, 0.2);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 30px rgba(46, 92, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(46, 92, 255, 0.4) 0%, rgba(46, 92, 255, 0) 70%);
}

.orb-2 {
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(11, 209, 138, 0.3) 0%, rgba(11, 209, 138, 0) 70%);
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-30px, 50px) scale(1.1);
    }
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

/* .logo img {
    height: 150px;
    width: auto;
    display: block;
} */

.back-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.back-link:hover {
    color: var(--primary-color);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    animation: fadeInDown 0.8s ease-out;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-glow);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.meta-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.intro-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Content Layout */
.content-wrapper {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

/* Sidebar & TOC */
.sidebar {
    width: 280px;
    position: sticky;
    top: 100px;
    flex-shrink: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-subtle);
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 4px;
}

.toc h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.toc a:hover {
    background: var(--primary-glow);
    color: var(--primary-color);
}

.toc a.active {
    background: rgba(46, 92, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
}

/* Main Content */
.policy-content {
    flex-grow: 1;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-subtle);
}

.policy-section {
    margin-bottom: 3.5rem;
    scroll-margin-top: 100px;
    /* For anchor links */
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    position: relative;
    padding-bottom: 0.5rem;
}

.policy-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.policy-section p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.subsection {
    margin-top: 2rem;
}

.subsection h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Lists and Formatting */
ul,
ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

li {
    margin-bottom: 0.5rem;
}

.columns-2 {
    columns: 2;
    column-gap: 2rem;
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.grid-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.grid-item::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 8px;
}

.contact-card {
    background: linear-gradient(135deg, rgba(46, 92, 255, 0.05), rgba(11, 209, 138, 0.05));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-top: 1.5rem;
}

.contact-card h3 {
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

.notice-section {
    background: rgba(255, 171, 0, 0.1);
    border-left: 4px solid #FFAB00;
    padding: 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.notice-section h2::after {
    background: #FFAB00;
}

.notice-section p {
    color: #b37700;
}

.mt-4 {
    margin-top: 1rem;
}

footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        max-height: none;
        margin-bottom: 2rem;
    }

    .toc ul {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .policy-content {
        padding: 2rem 1.5rem;
    }

    .columns-2 {
        columns: 1;
    }
}