/* Privacy policy & data safety pages */

.legal-page {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 6.5rem 0 3rem;
    background: #0f172a;
}

.legal-hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.legal-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--ds-primary), var(--ds-secondary));
    color: #fff;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.35);
}

.legal-hero h1 {
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.legal-hero-lead {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.legal-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.legal-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static !important;
    }
}

.legal-toc {
    position: sticky;
    top: 5.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.25rem;
}

.legal-toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.legal-toc a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 0.35rem 0;
    border-left: 2px solid transparent;
    padding-left: 0.65rem;
    transition: color 0.15s, border-color 0.15s;
}

.legal-toc a:hover {
    color: #e2e8f0;
    border-left-color: var(--ds-secondary);
}

.legal-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2rem 2rem 2.5rem;
}

.legal-content section {
    scroll-margin-top: 6rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-content section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-content h2 {
    color: #f1f5f9;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.legal-content h3 {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.65rem;
}

.legal-content p,
.legal-content li {
    color: #94a3b8;
    line-height: 1.75;
    font-size: 0.95rem;
}

.legal-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

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

.legal-content a {
    color: #93c5fd;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-callout {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 0.85rem;
    padding: 1rem 1.15rem;
    margin: 1rem 0;
}

.legal-callout.info {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
}

.legal-callout p {
    margin-bottom: 0;
    color: #cbd5e1;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.legal-table th,
.legal-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

.legal-table th {
    color: #e2e8f0;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
}

.legal-table td {
    color: #94a3b8;
}

.legal-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.legal-badge-yes {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.legal-badge-no {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

.legal-badge-opt {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
}

.legal-related {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.legal-related a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}

.legal-related a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(147, 197, 253, 0.35);
    color: #fff;
}

.pub-trust-section {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pub-trust-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.3s, border-color 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.pub-trust-card:hover {
    transform: translateY(-4px);
    border-color: rgba(147, 197, 253, 0.35);
    color: inherit;
}

.pub-trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.pub-trust-icon.privacy {
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
}

.pub-trust-icon.safety {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.pub-trust-card h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pub-trust-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.pub-trust-link {
    color: #93c5fd;
    font-size: 0.88rem;
    font-weight: 600;
}

.pub-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
}

.pub-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.pub-footer-links a:hover {
    color: #e2e8f0;
}

.pub-footer-dot {
    color: #475569;
    user-select: none;
}
