/* Legal Pages CSS - Privacy Policy, Terms & Conditions, Disclaimer */

.legal-content {
    padding: 4rem 0;
    background: var(--primary-color);
    min-height: 80vh;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Table of Contents */
.table-of-contents {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 215, 0, 0.2);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.table-of-contents h3 {
    color: var(--gold-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 0.5rem;
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 0.8rem;
}

.table-of-contents a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
    border-radius: 4px;
}

.table-of-contents a:hover {
    color: var(--gold-color);
    background: rgba(255, 215, 0, 0.1);
    padding-left: 0.5rem;
}

.table-of-contents a:focus {
    outline: 2px solid var(--gold-color);
    outline-offset: 2px;
}

/* Legal Text Content */
.legal-text {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 215, 0, 0.1);
    line-height: 1.7;
}

.legal-text section {
    margin-bottom: 3rem;
}

.legal-text section:last-of-type {
    margin-bottom: 0;
}

.legal-text h2 {
    color: var(--gold-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.legal-text h3 {
    color: var(--gold-color);
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
}

.legal-text p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
    opacity: 0.9;
}

.legal-text ul {
    margin: 1rem 0 1.5rem 2rem;
}

.legal-text li {
    margin-bottom: 0.8rem;
    color: var(--text-light);
    opacity: 0.9;
}

.legal-text strong {
    color: var(--gold-color);
    font-weight: 600;
}

/* Contact Information */
.contact-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.8rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Policy Footer */
.policy-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    text-align: center;
}

.policy-footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.policy-footer p:last-child {
    margin-bottom: 0;
}

/* Last Updated Notice */
.last-updated {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Design for Legal Pages */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .table-of-contents {
        position: static;
        order: 2;
    }

    .legal-text {
        order: 1;
    }
}

@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 0;
    }

    .content-wrapper {
        gap: 1.5rem;
    }

    .table-of-contents {
        padding: 1.5rem;
    }

    .legal-text {
        padding: 2rem;
    }

    .legal-text h2 {
        font-size: 1.6rem;
    }

    .legal-text h3 {
        font-size: 1.2rem;
    }

    .table-of-contents h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        gap: 1rem;
    }

    .table-of-contents {
        padding: 1rem;
    }

    .legal-text {
        padding: 1.5rem;
    }

    .legal-text h2 {
        font-size: 1.4rem;
    }

    .legal-text h3 {
        font-size: 1.1rem;
    }

    .contact-info {
        padding: 1rem;
    }
}

/* Print Styles for Legal Pages */
@media print {
    .table-of-contents {
        display: none;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .legal-text {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }

    .legal-text h2,
    .legal-text h3 {
        color: black;
        border-color: #ccc;
    }

    .legal-text p,
    .legal-text li {
        color: black;
    }

    .contact-info {
        background: #f5f5f5;
        border: 1px solid #ccc;
    }

    .policy-footer {
        border-color: #ccc;
    }

    .page-header {
        display: none;
    }

    .footer {
        display: none;
    }
}

/* Accessibility Improvements */
.legal-text section:target {
    background: rgba(255, 215, 0, 0.05);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: -1rem;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for better keyboard navigation */
.legal-text a:focus,
.table-of-contents a:focus {
    outline: 2px solid var(--gold-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .legal-text {
        background: rgba(0, 0, 0, 0.9);
        border-color: var(--gold-color);
    }

    .table-of-contents {
        background: rgba(0, 0, 0, 0.9);
        border-color: var(--gold-color);
    }

    .contact-info {
        background: rgba(0, 0, 0, 0.9);
        border-color: var(--gold-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .table-of-contents a {
        transition: none;
    }

    .table-of-contents a:hover {
        padding-left: 0;
    }
}
