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

:root {
    --primary-color: #6d28d9;
    --primary-light: #8b5cf6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-light: #9ca3af;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    --border-color: #e5e7eb;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    
    --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(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
}

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

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Source Serif Pro', serif;
}

.header h1 i {
    margin-right: 15px;
    font-size: 2.2rem;
}

.last-updated {
    font-size: 1rem;
    opacity: 0.9;
    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: 3px solid var(--primary-light);
    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: linear-gradient(to right, #e0e7ff, #ede9fe);
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.notice-box {
    background: #fef3c7;
    border-left: 4px solid var(--warning-color);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.warning-box {
    background: #fee2e2;
    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: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 25px 0;
}

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

/* Contact Card */
.contact-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 25px;
    border: 1px solid #bae6fd;
}

.contact-card h3 {
    color: var(--info-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(--info-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;
}

/* CCPA Table */
.ccpa-section {
    margin: 30px 0;
}

.ccpa-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ccpa-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.ccpa-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.ccpa-table tr:nth-child(even) {
    background: var(--bg-secondary);
}

.ccpa-table tr:hover {
    background: var(--bg-tertiary);
}

/* Device Instructions */
.device-instructions {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 25px;
    margin: 25px 0;
}

.device-option {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 15px 0;
}

.device-option h5 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* 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(--primary-color);
    color: white;
}

.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: 600;
}

/* Age Restriction */
.age-restriction {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    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(--danger-color);
}

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

/* Security Tips */
.security-tips {
    margin: 30px 0;
}

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

.tip {
    background: var(--bg-primary);
    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);
}

/* Account Linking */
.account-linking {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.social-option {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    transition: var(--transition);
}

.social-option:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-option i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.social-option h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Rights List */
.rights-list {
    margin: 30px 0;
}

.right-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.right-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 5px;
}

/* 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-primary);
    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);
}

/* Contact Action */
.contact-action {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 40px;
}

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

.contact-action ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.contact-action li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.contact-action li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--info-color);
    font-weight: bold;
}

/* Retention Info */
.retention-info {
    margin: 30px 0;
}

.retention-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

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

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

/* Update Notice */
.update-notice {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.effective-date {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    margin-top: 30px;
}

.effective-date h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

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

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

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

.copyright {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 20px 0;
}

.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: white;
    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: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 30px 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;
    }
    
    .account-linking,
    .rights-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.7rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}