/* ========================================
   Notes4Pets — Legal Pages Styles
   ======================================== */

.legal-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.legal-updated {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 8px;
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.legal-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.legal-section p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
}

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

.legal-section ul li {
    position: relative;
    padding-left: 24px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 6px;
}

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

.legal-section a {
    color: var(--orange);
    font-weight: 500;
    transition: opacity 0.2s;
}

.legal-section a:hover {
    opacity: 0.7;
}

/* Info Card */
.legal-info-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 16px 0;
}

.legal-info-card p {
    margin-bottom: 4px;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

/* Email link highlight */
.legal-email {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 149, 0, 0.08);
    border: 1px solid rgba(255, 149, 0, 0.2);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--orange) !important;
    transition: all 0.2s;
}

.legal-email:hover {
    background: rgba(255, 149, 0, 0.15);
    opacity: 1 !important;
}

/* GDPR Table */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.legal-table thead {
    background: var(--gradient-primary);
}

.legal-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.legal-table td {
    padding: 12px 16px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

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

.legal-table tbody tr:nth-child(even) {
    background: var(--bg-alt);
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0 24px;
}

.right-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.2s;
}

.right-card:hover {
    border-color: rgba(255, 149, 0, 0.2);
    box-shadow: var(--shadow-sm);
}

.right-card h4 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.right-card p {
    font-size: 0.82rem !important;
    margin-bottom: 0 !important;
    color: var(--text-secondary);
    line-height: 1.5 !important;
}

/* Navigation between legal pages */
.legal-nav-links {
    max-width: 780px;
    margin: 48px auto 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Active link in legal nav */
.nav-link.active-link {
    color: var(--orange) !important;
    font-weight: 600;
}

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

    .rights-grid {
        grid-template-columns: 1fr;
    }

    .legal-table {
        font-size: 0.82rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 10px 12px;
    }

    .legal-nav-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .legal-section h2 {
        font-size: 1.15rem;
    }

    .legal-info-card {
        padding: 16px;
    }
}
