/* Root Variables */
:root {
    --primary-color: #3E4784;
    --secondary-color: #5A6BB8;
    --accent-color: #7B8BC4;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-section: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

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

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: var(--bg-section);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Document Header */
.document-header {
    margin-bottom: 3rem;
}

.document-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.last-updated {
    color: #6c757d;
    font-size: 1rem;
}

/* Table of Contents */
.toc {
    background: var(--bg-section);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
}

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

.toc ul {
    list-style: none;
}

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

.toc a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.toc a::before {
    content: "→";
    margin-right: 0.5rem;
}

.toc a:hover {
    text-decoration: underline;
}

/* Content Sections */
.content-section {
    background: var(--bg-section);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.content-section h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.content-section h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.content-section h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.content-section p {
    margin-bottom: 1rem;
    color: #495057;
    line-height: 1.7;
}

.content-section ul,
.content-section ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: #495057;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

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

.content-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

/* Notice Box */
.notice-box {
    background: #e7f0ff;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.notice-box p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.notice-box p:last-child {
    margin-bottom: 0;
}

/* Info Box */
.info-box {
    background: var(--bg-light);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.info-box h4 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

/* Consent Box */
.consent-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.consent-box h3 {
    color: #856404;
    margin-bottom: 0.75rem;
}

.consent-box p {
    color: #856404;
}

/* Highlight Box */
.highlight-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.highlight-box p {
    color: #721c24;
    margin: 0;
}

/* Rights Section */
.rights-section {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.rights-section h3 {
    color: #0c5460;
    margin-bottom: 1rem;
}

.rights-section ul {
    color: #0c5460;
}

.rights-section p {
    color: #0c5460;
    margin-top: 1rem;
}

/* Process Steps */
.process-steps {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.process-steps h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.process-steps ol {
    padding-left: 1.5rem;
}

/* Legal Grid */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.legal-card {
    background: var(--bg-section);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.legal-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.legal-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal-card p {
    color: #6c757d;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.legal-card .last-updated {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Footer */
.footer {
    background: #2c3654;
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

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

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .breadcrumb,
    .btn {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .content-section {
        box-shadow: none;
        padding: 0;
    }
    
    body {
        background: white;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .document-header h1 {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .legal-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
