/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5D9EFF;
    --primary-light: #78B4FF;
    --secondary-color: #25C896;
    --accent-color: #FFB014;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #78B4FF;

    --text-primary: #FFFFFF;
    --text-secondary: #8DA0BC;
    --text-light: #9CB1CD;

    --bg-primary: #111E33;
    --bg-secondary: #0B1626;
    --bg-tertiary: #16263F;

    --border-color: #1C3050;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;

    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding-top: 20px;
}

/* Header */
.header {
    grid-column: 1 / -1;
    background: linear-gradient(0deg, var(--bg-secondary), var(--bg-primary));
    color: white;
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

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

.header-logo {
    width: 84px;
    height: 84px;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.last-updated {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Table of Contents */
.toc {
    position: sticky;
    top: 20px;
    height: fit-content;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.toc h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc > ul > li {
    margin-bottom: 15px;
}

.toc ul ul {
    padding-left: 20px;
    margin-top: 8px;
    border-left: 2px solid var(--border-color);
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 6px 0;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.95rem;
}

.toc a:hover {
    color: var(--primary-color);
    background: var(--bg-tertiary);
    padding-left: 10px;
}

.toc a.active {
    color: var(--primary-color);
    font-weight: 600;
    background: var(--bg-tertiary);
    padding-left: 10px;
}

/* Main Content */
.content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* Section Styles */
.section {
    margin-bottom: 60px;
    scroll-margin-top: 80px;
}

.section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.subsection {
    margin-bottom: 40px;
}

.subsection h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.subsection h4 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 25px 0 15px;
}

/* Box Styles */
.highlight-box {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.notice-box {
    background: rgba(255, 176, 20, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--danger-color);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    margin: 25px 0;
}

.legal-note {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 25px 0;
}

.legal-note i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Contact Card */
.contact-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 25px;
    border: 1px solid var(--border-color);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-card ul {
    list-style: none;
    padding-left: 0;
}

.contact-card li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.info-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.info-item:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Checklist */
.checklist {
    list-style: none;
    padding-left: 0;
    margin: 25px 0;
}

.checklist li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist i {
    color: var(--secondary-color);
}

/* Disclosure Table */
.disclosure-table {
    margin: 30px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}

.table-row:last-child {
    border-bottom: none;
}

.table-row.header {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.table-cell {
    padding: 20px;
    border-right: 1px solid var(--border-color);
}

.table-cell:last-child {
    border-right: none;
}

.table-row.header .table-cell {
    font-weight: 700;
}

/* Age Restriction */
.age-restriction {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.age-restriction i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.age-restriction p {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Security Tips */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.tip {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.tip:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tip i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tip h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.right-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

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

.right-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.right-card h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Footer */
.policy-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-content > p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #0B1626;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .toc {
        position: static;
        margin-bottom: 30px;
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 40px 20px;
    }

    .content {
        padding: 25px;
    }

    .info-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .table-row {
        grid-template-columns: 1fr;
    }

    .table-cell {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .table-row .table-cell:last-child {
        border-bottom: none;
    }

    .rights-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}
