/* ============================================
   Legal Pages — Privacy Policy & Terms
   ============================================ */

.legal-page {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 3rem) 2rem 4rem;
}

/* Header */
.legal-header {
    margin-bottom: 3.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}
.legal-back:hover {
    color: var(--primary-light);
}

.legal-header h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-date {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Body */
.legal-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.legal-section {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}
.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
    color: var(--text);
}

.legal-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.legal-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}
.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    margin: 0.8rem 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-section li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-left: 1.6rem;
    position: relative;
}
.legal-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.legal-section a {
    color: var(--primary-light);
    text-decoration: underline;
    text-decoration-color: rgba(129, 140, 248, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}
.legal-section a:hover {
    text-decoration-color: var(--primary-light);
}

.legal-section strong {
    color: var(--text);
    font-weight: 600;
}

/* Table */
.legal-table {
    margin: 1.2rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.legal-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.legal-table-row:last-child {
    border-bottom: none;
}

.legal-table-header {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    color: var(--text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Contact */
.legal-contact {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}
.contact-item:hover {
    border-color: var(--border-light);
}
.contact-item svg {
    color: var(--primary-light);
    flex-shrink: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 680px) {
    .legal-page {
        padding: calc(var(--nav-height) + 2rem) 1.2rem 3rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-section {
        padding: 2rem 0;
    }

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

    .legal-table-row {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        padding: 0.8rem 1rem;
    }
    .legal-table-header {
        display: none;
    }
    .legal-table-row span:first-child {
        font-weight: 600;
        color: var(--text);
    }
}
