/* Legal Pages Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.9) 0%,
        rgba(22, 33, 62, 0.9) 100%
    );
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 3.5rem;
    color: #ffd700;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.3rem;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.last-updated {
    color: #999;
    font-size: 1rem;
    margin-top: 20px;
}

.last-updated strong {
    color: #ffd700;
}

/* Legal Content */
.legal-content {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.2);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* Table of Contents */
.table-of-contents {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.table-of-contents h3 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.table-of-contents a:hover {
    color: #ffd700;
}

.table-of-contents a.active {
    color: #ffd700;
    font-weight: 600;
}

/* Legal Text */
.legal-text {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    line-height: 1.7;
}

.legal-text section {
    margin-bottom: 40px;
    scroll-margin-top: 120px;
}

.legal-text h2 {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
}

.legal-text h3 {
    color: #ffd700;
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.legal-text p {
    color: #ccc;
    margin-bottom: 15px;
    text-align: justify;
}

.legal-text ul,
.legal-text ol {
    color: #ccc;
    margin-bottom: 20px;
    padding-left: 25px;
}

.legal-text li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-text strong {
    color: #ffd700;
    font-weight: 600;
}

.legal-text a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-text a:hover {
    color: #ffed4e;
    text-decoration: underline;
}

/* Contact Info Styling */
.contact-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #ffd700;
}

.contact-info p {
    margin-bottom: 8px;
}

.ico-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #ffd700;
}

.ico-info p {
    margin-bottom: 8px;
}

/* Highlight Boxes */
.highlight-box {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.highlight-box h4 {
    color: #ffd700;
    margin-bottom: 10px;
    font-weight: 600;
}

.highlight-box p {
    margin-bottom: 10px;
}

/* Warning Boxes */
.warning-box {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.warning-box h4 {
    color: #dc3545;
    margin-bottom: 10px;
    font-weight: 600;
}

.warning-box p {
    margin-bottom: 10px;
}

/* Info Boxes */
.info-box {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.info-box h4 {
    color: #17a2b8;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-box p {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .table-of-contents {
        position: static;
        max-height: none;
        order: 2;
    }

    .legal-text {
        order: 1;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .legal-text {
        padding: 30px 20px;
    }

    .legal-text h2 {
        font-size: 1.7rem;
    }

    .legal-text h3 {
        font-size: 1.2rem;
    }

    .table-of-contents {
        padding: 20px;
    }

    .table-of-contents h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .legal-content {
        padding: 40px 0;
    }

    .legal-text {
        padding: 25px 15px;
    }

    .legal-text h2 {
        font-size: 1.5rem;
    }

    .legal-text h3 {
        font-size: 1.1rem;
    }

    .table-of-contents {
        padding: 15px;
    }

    .contact-info,
    .ico-info,
    .highlight-box,
    .warning-box,
    .info-box {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .table-of-contents,
    .cookie-banner,
    .modal {
        display: none !important;
    }

    .page-header {
        margin-top: 0;
        padding: 20px 0;
    }

    .legal-content {
        padding: 0;
        background: white;
    }

    .legal-text {
        background: white;
        color: black;
        border: none;
        padding: 0;
    }

    .legal-text h2,
    .legal-text h3 {
        color: black;
        border-bottom: 1px solid #ccc;
    }

    .legal-text p,
    .legal-text li {
        color: black;
    }

    .legal-text strong {
        color: black;
    }

    .legal-text a {
        color: black;
        text-decoration: underline;
    }
}
