/* Legal Pages Styling */

/* Legal Page Layout */
.legal-page {
    padding: 120px 24px 80px;
    min-height: 100vh;
    background: var(--cream);
}

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

/* Legal Header */
.legal-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(26, 29, 33, 0.1);
}

.legal-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.legal-updated {
    font-size: 0.9rem;
    color: rgba(26, 29, 33, 0.6);
}

/* Plain English Summary Box */
.legal-summary {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 48px;
    border: 1px solid rgba(26, 29, 33, 0.08);
}

.legal-summary h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.legal-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-summary li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: rgba(26, 29, 33, 0.8);
    line-height: 1.6;
}

.legal-summary li:last-child {
    margin-bottom: 0;
}

.legal-summary li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
}

/* Legal Content */
.legal-content section {
    margin-bottom: 40px;
}

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

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 16px;
    margin-top: 0;
}

.legal-content h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 12px;
    margin-top: 24px;
}

.legal-content p {
    color: rgba(26, 29, 33, 0.8);
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.legal-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.legal-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: rgba(26, 29, 33, 0.8);
    line-height: 1.6;
}

.legal-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: rgba(26, 29, 33, 0.3);
    border-radius: 50%;
}

.legal-content li strong {
    color: var(--charcoal);
}

/* Cookie Table */
.cookie-table {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
    border: 1px solid rgba(26, 29, 33, 0.08);
}

.cookie-table h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.cookie-table > p {
    margin-bottom: 20px;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
}

.cookie-table th,
.cookie-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(26, 29, 33, 0.08);
}

.cookie-table th {
    font-weight: 600;
    color: var(--charcoal);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-table td {
    color: rgba(26, 29, 33, 0.8);
    font-size: 0.95rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 100px 20px 60px;
    }

    .legal-header {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    .legal-summary {
        padding: 24px;
        margin-bottom: 32px;
    }

    .legal-content section {
        margin-bottom: 32px;
    }

    .cookie-table {
        padding: 16px;
        overflow-x: auto;
    }

    .cookie-table table {
        min-width: 400px;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.75rem;
    }

    .legal-content h2 {
        font-size: 1.25rem;
    }

    .legal-summary li,
    .legal-content li,
    .legal-content p {
        font-size: 0.95rem;
    }
}
