/* BOOKY AI — Legal Pages */
.legal-page-wrapper {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.legal-hero {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.legal-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.legal-content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 3rem;
    position: relative;
    z-index: 2;
}

.legal-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-content h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid rgba(var(--brand-rgb), 0.3);
    padding-bottom: 0.75rem;
    display: inline-block;
    padding-right: 2rem;
}

.legal-content h3 {
    font-size: 1.4rem;
    color: var(--brand-light);
}

.legal-content p {
    margin-bottom: 1.5rem;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.last-updated {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(var(--brand-rgb), 0.1);
    border-radius: var(--radius-full);
    color: var(--brand-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(var(--brand-rgb), 0.2);
}

/* Legal Tables for Cookies and US Disclosures */
.legal-table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
    border-radius: var(--radius-md, 12px);
    border: 1px solid var(--border-default, rgba(148, 163, 184, 0.2));
}

.legal-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.legal-table th {
    background: rgba(var(--brand-rgb, 16, 185, 129), 0.08);
    color: var(--text-primary, #111827);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-default, rgba(148, 163, 184, 0.2));
    text-align: left;
    white-space: nowrap;
}

.legal-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-default, rgba(148, 163, 184, 0.15));
    vertical-align: top;
}

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

.legal-table tr:hover td {
    background: rgba(var(--brand-rgb, 16, 185, 129), 0.03);
}

/* Legal Callout Boxes */
.legal-callout {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md, 12px);
    margin: 1.5rem 0;
    border-left: 4px solid var(--brand-color, #10b981);
    background: rgba(var(--brand-rgb, 16, 185, 129), 0.06);
}

.legal-callout h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-primary, #111827);
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-callout p:last-child {
    margin-bottom: 0;
}

.legal-callout-warning {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.07);
}

.legal-callout-info {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.07);
}

/* Privacy Badges */
.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(var(--brand-rgb, 16, 185, 129), 0.12);
    color: var(--brand-light, #10b981);
    border: 1px solid rgba(var(--brand-rgb, 16, 185, 129), 0.25);
}

@media (max-width: 768px) {
    .legal-title {
        font-size: 2.5rem;
    }
    
    .legal-content-card {
        padding: 1.5rem;
    }
}

