/* Legal Pages Specific Styles */

/* Legal Hero Section */
.legal-hero {
    background: linear-gradient(135deg, #f4f4f4 0%, #fefefe 100%);
    padding: 80px 0 60px;
    border-bottom: 1px solid #e5e5e5;
}

.legal-hero h1 {
    font-size: 52px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-align: center;
}

.legal-subtitle {
    text-align: center;
    color: #666;
    font-size: 18px;
}

/* Legal Content Layout */
.legal-content {
    padding: 80px 0;
    background: #fff;
}

.legal-content .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

/* Sticky Navigation */
.legal-nav {
    position: sticky;
    top: 100px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 30px;
}

.legal-nav h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.legal-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-nav ul li {
    margin-bottom: 12px;
}

.legal-nav a {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
    display: block;
    padding: 5px 0;
}

.legal-nav a:hover {
    color: #0069ff;
}

.legal-nav a.active {
    color: #0069ff;
    font-weight: 600;
}

/* Legal Main Content */
.legal-main {
    max-width: 800px;
}

.legal-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 36px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

.legal-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 25px;
    margin-bottom: 12px;
}

.legal-section p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 16px;
}

.legal-section ul,
.legal-section ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.legal-section ul li,
.legal-section ol li {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 10px;
}

.legal-section strong {
    font-weight: 600;
    color: #1a1a1a;
}

.legal-section a {
    color: #0069ff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.legal-section a:hover {
    border-bottom-color: #0069ff;
}

/* Contact Box */
.contact-box {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #0069ff;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.contact-box p {
    margin-bottom: 10px;
    font-size: 16px;
}

.contact-box p:last-child {
    margin-bottom: 0;
}

/* Cookie Tables */
.cookie-table {
    margin: 25px 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.cookie-table thead {
    background: #f9f9f9;
}

.cookie-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    border-bottom: 2px solid #e5e5e5;
}

.cookie-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #333;
}

.cookie-table tbody tr:last-child td {
    border-bottom: none;
}

.cookie-table tbody tr:hover {
    background: #fafafa;
}

/* Browser Instructions */
.browser-instructions {
    margin: 30px 0;
}

.browser-instructions h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 20px;
    margin-bottom: 10px;
}

.browser-instructions ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.browser-instructions ol li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* Cookie Preference Buttons */
.cookie-preference-buttons {
    margin: 30px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 968px) {
    .legal-hero h1 {
        font-size: 42px;
    }

    .legal-content .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .legal-nav {
        position: static;
        order: 2;
        margin-top: 40px;
    }

    .legal-main {
        order: 1;
    }

    .legal-section h2 {
        font-size: 32px;
    }

    .legal-section h3 {
        font-size: 22px;
    }

    .cookie-table {
        font-size: 14px;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 10px;
    }
}

@media (max-width: 640px) {
    .legal-hero {
        padding: 60px 0 40px;
    }

    .legal-hero h1 {
        font-size: 36px;
    }

    .legal-subtitle {
        font-size: 16px;
    }

    .legal-content {
        padding: 60px 0;
    }

    .legal-section h2 {
        font-size: 28px;
    }

    .legal-section h3 {
        font-size: 20px;
    }

    .legal-section h4 {
        font-size: 18px;
    }

    .legal-section p,
    .legal-section ul li,
    .legal-section ol li {
        font-size: 15px;
    }

    .contact-box {
        padding: 20px;
    }

    .cookie-table table {
        font-size: 13px;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 8px;
    }
}

/* Print Styles */
@media print {

    .legal-nav,
    header,
    footer,
    .cookie-preference-buttons {
        display: none;
    }

    .legal-content .container {
        grid-template-columns: 1fr;
    }

    .legal-section {
        page-break-inside: avoid;
    }
}