/* Legal Pages Styles */

.legal-page {
    padding: 8rem 0 4rem;
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
    display: inline-block;
}

.legal-section h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: 1.75rem 0 1rem;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin: 1rem 0 1.5rem;
    padding-left: 1.5rem;
}

.legal-section ul li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.625rem;
    position: relative;
}

.legal-section ul li::marker {
    color: var(--primary-color);
}

.legal-section ul li strong {
    color: var(--text-primary);
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-info {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.legal-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.legal-footer p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Table of Contents (optional) */
.toc {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.toc h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc ul li {
    margin-bottom: 0.5rem;
}

.toc ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.toc ul li a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.toc ul li a::before {
    content: '→';
    opacity: 0;
    transition: opacity 0.2s ease;
}

.toc ul li a:hover::before {
    opacity: 1;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.05), rgba(33, 150, 243, 0.05));
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin-bottom: 0;
    color: var(--text-primary);
}

/* Definition List */
.legal-section dl {
    margin: 1rem 0;
}

.legal-section dt {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1rem;
}

.legal-section dd {
    color: var(--text-secondary);
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .legal-page {
        padding: 7rem 0 3rem;
    }

    .legal-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .legal-header h1 {
        font-size: 1.75rem;
    }

    .legal-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }

    .legal-section h3 {
        font-size: 1.0625rem;
    }

    .legal-section p,
    .legal-section ul li {
        font-size: 0.9375rem;
    }

    .contact-info {
        padding: 1.25rem;
    }

    .legal-footer {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding: 6rem 0 2rem;
    }

    .legal-header h1 {
        font-size: 1.5rem;
    }

    .last-updated {
        font-size: 0.875rem;
    }

    .legal-section h2 {
        font-size: 1.125rem;
    }

    .legal-section p,
    .legal-section ul li {
        font-size: 0.875rem;
    }

    .legal-section ul {
        padding-left: 1.25rem;
    }

    .contact-info {
        padding: 1rem;
    }

    .contact-info p {
        font-size: 0.875rem;
    }

    .toc {
        padding: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .legal-footer .btn {
        display: none;
    }

    .legal-page {
        padding: 0;
    }

    .legal-section {
        page-break-inside: avoid;
    }

    .legal-section h2 {
        page-break-after: avoid;
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
