/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-text: #7f8c8d;
    --border-color: #ecf0f1;
    --bg-color: #fff;
    --sidebar-bg: #f8f9fa;
    --highlight-bg: #f1f9fe;
    --info-bg: #e8f4fd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
}

/* Layout */
.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.legal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--secondary-color);
}

.legal-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.legal-header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0.5rem 0;
}

.last-updated {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.legal-content {
    display: flex;
}

/* Sidebar */
.toc-sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    padding: 1.5rem;
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.toc-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.toc-nav {
    list-style: none;
}

.toc-nav li {
    margin-bottom: 0.5rem;
}

.toc-nav a {
    display: block;
    padding: 0.7rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.toc-nav a:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

.toc-nav a.active {
    background-color: var(--secondary-color);
    color: white;
}

.toc-nav i {
    margin-right: 0.7rem;
    width: 20px;
    text-align: center;
}

.print-btn {
    margin-top: 2rem;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.print-btn:hover {
    background-color: #1a252f;
}

.print-btn i {
    margin-right: 0.5rem;
}

/* Main Content */
.legal-main {
    flex: 1;
    padding: 2rem;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
}

.section-icon {
    margin-right: 0.8rem;
    color: var(--secondary-color);
}

.legal-section h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

/* Typography */
p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

strong {
    font-weight: 500;
}

/* Lists */
.styled-list {
    list-style-position: inside;
    margin: 1rem 0;
}

.styled-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.styled-list li:before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Links */
.text-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.text-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Special Boxes */
.info-box {
    background-color: var(--info-bg);
    border-left: 4px solid var(--secondary-color);
    padding: 1rem;
    margin: 1.5rem 0;
    display: flex;
    border-radius: 0 4px 4px 0;
}

.info-box i {
    color: var(--secondary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.info-box p {
    margin: 0;
}

.highlight-box {
    background-color: var(--highlight-bg);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    border: 1px solid #d6eaf8;
}

.highlight-box i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.highlight-box p {
    margin: 0;
    display: inline;
}

/* Contact Card */
.contact-card {
    background-color: var(--sidebar-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.contact-item h5 {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0.2rem;
}

.contact-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* Footer */
.legal-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 0.8rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    margin: 0 0.8rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .legal-content {
        flex-direction: column;
    }
    
    .toc-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .legal-main {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .legal-header {
        padding: 1.5rem;
    }
    
    .legal-header h1 {
        font-size: 1.5rem;
    }
    
    .legal-header h2 {
        font-size: 1.2rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-item i {
        margin-bottom: 0.5rem;
    }
}
html{
    scroll-behavior: smooth;
}