* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f8f9fa;
    --text-dark: #121212;
    --text-light: #4a4a4a;
    --accent-color: #000000;
    --border-color: #e0e0e0;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

body {
    background: linear-gradient(135deg, #f9f9f9 0%, #eef2f7 100%);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(230, 230, 230, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(230, 230, 230, 0.1) 0%, transparent 20%);
    pointer-events: none;
    z-index: -1;
}

/* Header Styles */
header {
    background-color: var(--primary-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.8s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: 50px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo i {
    color: white;
    font-size: 24px;
}

.brand {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    background: linear-gradient(45deg, #000, #333);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--text-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 6rem 5% 4rem;
    text-align: center;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(0,0,0,0.03)" stroke-width="1"/></svg>');
    background-size: 30px;
    animation: patternAnimation 20s linear infinite;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #000, #333);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.last-updated {
    background: rgba(0, 0, 0, 0.05);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Main Content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2%;
    display: flex;
    gap: 2rem;
}

.toc-container {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
    align-self: flex-start;
    order: -1; /* Ensures TOC stays on the left */
}

.toc {
    background: var(--primary-bg);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    padding: 1.8rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.toc-toggle {
    display: none;
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.toc-toggle:hover {
    background: #333;
}

.toc-content {
    transition: var(--transition);
}

.toc h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 0.8rem;
}

.toc a {
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.toc a:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-dark);
    transform: translateX(5px);
}

.toc a.active {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    font-weight: 500;
}

/* Tab Content Styles */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.content {
    flex: 1;
}

.policy-section {
    background: var(--primary-bg);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.policy-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.8rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.section-number {
    background: var(--accent-color);
    color: white;
    height: 40px;
    width: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.section-content {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.section-content h1,
.section-content h2,
.section-content h3,
.section-content h4,
.section-content h5,
.section-content h6 {
    color: var(--text-dark);
    margin: 2rem 0 1.2rem;
    font-weight: 600;
}

.section-content h1 { font-size: 2rem; }
.section-content h2 { font-size: 1.7rem; }
.section-content h3 { font-size: 1.5rem; }
.section-content h4 { font-size: 1.3rem; }
.section-content h5 { font-size: 1.2rem; }
.section-content h6 { font-size: 1.1rem; }

.section-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.section-content ul,
.section-content ol {
    padding-left: 1.8rem;
    margin-bottom: 1.8rem;
}

.section-content li {
    margin-bottom: 1rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.7;
}

.section-content ul li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.section-content a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: var(--transition);
}

.section-content a:hover {
    color: #333;
}

.section-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.section-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

.section-content code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.section-content pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.section-content pre code {
    background: none;
    padding: 0;
}

/* Footer */
footer {
    background: var(--accent-color);
    color: white;
    padding: 4rem 5% 3rem;
    margin-top: 4rem;
}

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

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes patternAnimation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100px;
    }
}

.policy-section {
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: calc(var(--order) * 0.1s);
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 1100px;
        padding: 2rem 3%;
    }

    .toc-container {
        width: 300px;
    }

    .policy-section {
        padding: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 4%;
    }

    .toc-container {
        width: 100%;
        position: static;
        order: 0;
    }

    .toc {
        position: sticky;
        top: 90px;
        z-index: 50;
        max-height: 300px;
        overflow-y: auto;
    }

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

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

@media (max-width: 900px) {
    .hero {
        padding: 5rem 4% 3rem;
    }

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

    .policy-section {
        padding: 2rem;
    }

    .section-content {
        font-size: 1.05rem;
    }

    .section-content p {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 4%;
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: 4rem 4% 3rem;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .container {
        padding: 1.5rem 4%;
    }

    .toc-toggle {
        display: block;
    }

    .toc-content.collapsed {
        display: none;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }

    .section-number {
        margin-bottom: 15px;
        margin-right: 0;
    }

    .policy-section {
        padding: 1.8rem;
    }

    .section-content {
        font-size: 1rem;
    }

    .section-content p {
        font-size: 1rem;
    }

    .section-content h1 { font-size: 1.8rem; }
    .section-content h2 { font-size: 1.5rem; }
    .section-content h3 { font-size: 1.3rem; }
    .section-content h4 { font-size: 1.2rem; }
    .section-content h5 { font-size: 1.1rem; }
    .section-content h6 { font-size: 1rem; }

    .toc {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 3rem 5% 2rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 1rem 5%;
    }

    .policy-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

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

    .section-content h1 { font-size: 1.6rem; }
    .section-content h2 { font-size: 1.4rem; }
    .section-content h3 { font-size: 1.2rem; }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.8rem 5%;
    }

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

    .brand {
        font-size: 1.5rem;
    }

    .logo {
        height: 40px;
        width: 40px;
    }

    .logo i {
        font-size: 20px;
    }

    .policy-section {
        padding: 1.2rem;
    }

    .section-number {
        height: 35px;
        width: 35px;
        font-size: 1rem;
    }

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

    .toc {
        padding: 1.2rem;
    }

    .toc h2 {
        font-size: 1.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 360px) {
    .hero {
        padding: 2.5rem 5% 2rem;
    }

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

    .policy-section {
        padding: 1rem;
    }

    .section-content {
        font-size: 0.95rem;
    }

    .section-content p {
        font-size: 0.95rem;
    }

    .section-content h1 { font-size: 1.4rem; }
    .section-content h2 { font-size: 1.3rem; }
    .section-content h3 { font-size: 1.1rem; }
}
