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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.back-link:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.back-link svg {
    width: 20px;
    height: 20px;
}

/* Header */
.page-header {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

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

.header-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.header-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--gray);
}

/* Main Content */
.content-wrapper {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-container {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Sections */
.policy-section {
    padding: 3rem;
    border-bottom: 1px solid #e2e8f0;
}

.policy-section:last-child {
    border-bottom: none;
}

.intro-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--dark-light);
    text-align: center;
}

/* Table of Contents */
.toc-section {
    background: var(--light);
}

.toc-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark);
}

.toc-title svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

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

.toc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
}

.toc-item:hover,
.toc-item.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateX(5px);
}

.toc-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.5;
}

.toc-item:hover .toc-number,
.toc-item.active .toc-number {
    opacity: 1;
}

.toc-text {
    font-weight: 600;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
}

/* Section Content */
.section-content {
    margin-left: 66px;
}

.content-list {
    list-style: none;
    margin: 1.5rem 0;
}

.content-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background: var(--gradient);
    border-radius: 50%;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.info-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.info-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Highlight Boxes */
.highlight-box,
.warning-box,
.contact-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.highlight-box {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success);
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning);
}

.contact-box {
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary);
}

.highlight-box svg,
.warning-box svg,
.contact-box svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.highlight-box svg {
    color: var(--success);
}

.warning-box svg {
    color: var(--warning);
}

.contact-box svg {
    color: var(--primary);
}

.highlight-box a,
.contact-box a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.highlight-box a:hover,
.contact-box a:hover {
    text-decoration: underline;
}

.note-text {
    font-size: 0.95rem;
    color: var(--gray);
    font-style: italic;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .page-header {
        padding: 6rem 1.5rem 3rem;
    }

    .content-wrapper {
        padding: 2rem 1rem;
    }

    .policy-section {
        padding: 2rem 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-content {
        margin-left: 0;
    }

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

    .info-cards {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .back-link span {
        display: none;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .policy-section {
        padding: 1.5rem 1rem;
    }

    .content-list li {
        font-size: 0.95rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }

    .page-header {
        padding: 2rem 0;
    }

    .policy-section {
        page-break-inside: avoid;
    }
}

