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

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.8;
    color: var(--dark);
    background: var(--light-gray);
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.back-button {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.back-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.header-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    opacity: 0.9;
}

.header-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Table of Contents */
.toc-section {
    background: white;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.toc-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.toc-link {
    color: var(--dark);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: var(--light-gray);
    transition: all 0.3s;
    display: block;
}

.toc-link:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

/* Content */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.policy-section {
    background: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.policy-section h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-light);
}

.policy-section h3 {
    color: var(--dark);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-section h4 {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.policy-section p {
    margin-bottom: 1rem;
    color: var(--gray);
}

.policy-section ul,
.policy-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--gray);
}

.policy-section li {
    margin-bottom: 0.5rem;
}

/* Highlight Boxes */
.highlight-box {
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.highlight-box.warning {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.highlight-box.success {
    background: #d1fae5;
    border-left-color: var(--secondary);
}

.highlight-box h4 {
    margin-top: 0;
    color: var(--dark);
    font-weight: 700;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
}

th {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    color: var(--gray);
}

tr:hover {
    background: var(--light-gray);
}

/* Contact Box */
.contact-box {
    background: linear-gradient(135deg, var(--light-gray), var(--white));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.contact-box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-box a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer a {
    color: var(--primary-light);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .policy-section {
        padding: 1.5rem;
    }

    .content {
        padding: 1rem;
    }

    table {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 0.75rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s;
    opacity: 0;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}