/* ============================================
   aiwarden Legal Pages Styles
   Privacy Policy & Terms of Service
   ============================================ */

/* === Legal Hero === */
.legal-hero {
    padding: 10rem 0 4rem;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    text-align: center;
}

.legal-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.legal-updated {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* === Legal Content === */
.legal-content {
    padding: 4rem 0 6rem;
}

.legal-body {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.legal-section li {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-section li strong {
    color: var(--text-primary);
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.legal-section a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* === Contact Info Box === */
.contact-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* === Footer Active Link === */
.footer-column a.active {
    color: var(--text-primary);
}

/* === Cookie Tables === */
.cookie-table-wrapper {
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cookie-table th {
    background: rgba(255, 76, 70, 0.05);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-table td {
    color: var(--text-secondary);
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table code {
    background: rgba(255, 76, 70, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

/* === Legal Footer Nav === */
.legal-footer-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.legal-footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-footer-nav a:hover {
    color: var(--primary);
}

.legal-footer-nav .separator {
    margin: 0 1rem;
    color: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 768px) {
    .legal-hero {
        padding: 8rem 0 3rem;
    }

    .legal-content {
        padding: 3rem 0 4rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-section ul {
        margin-left: 1rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .cookie-table code {
        font-size: 0.75rem;
    }
}
