/* Hirly — Legal Pages Style (page-legal.css) */

.legal-page {
    background-color: #f8fafc;
    padding: 10rem 0 8rem;
    min-height: 100vh;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Style */
.legal-header {
    text-align: center;
    margin-bottom: 5rem;
}

.legal-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.last-updated {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Content Card */
.legal-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 5rem;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.legal-section {
    margin-bottom: 4rem;
}

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

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    letter-spacing: -0.02em;
}

.legal-section h2 i {
    color: var(--primary);
    font-size: 1.25rem;
    opacity: 0.8;
}

.legal-section p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
}

/* List Styling */
.legal-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-section li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #64748b;
    padding-left: 2rem;
    position: relative;
}

.legal-section li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

html[dir="rtl"] .legal-section li {
    padding-left: 0;
    padding-right: 2rem;
}

html[dir="rtl"] .legal-section li::before {
    left: auto;
    right: 0;
    content: "←";
}

/* Callouts */
.smart-callout {
    background: #f8fafc;
    border-radius: 24px;
    padding: 3rem;
    border-left: 4px solid var(--primary);
    margin: 4rem 0;
}

html[dir="rtl"] .smart-callout {
    border-left: none;
    border-right: 4px solid var(--primary);
}

.smart-callout h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.smart-callout p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #475569;
}

/* Buttons */
.legal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary);
    color: white !important;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
    margin-top: 1rem;
}

.legal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.4);
    background: var(--primary-dark);
}

/* AI Details */
.ai-protection-details {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid #f1f5f9;
}

.ai-protection-details details {
    background: #f8fafc;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ai-protection-details summary {
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.ai-protection-details summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.ai-protection-details details[open] summary::after {
    transform: rotate(180deg);
}

.ai-protection-details .content {
    padding: 0 2rem 2rem;
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 6rem 0 4rem;
    }
    .legal-header h1 {
        font-size: 2.25rem;
    }
    .legal-card {
        padding: 3rem 1.5rem;
        border-radius: 24px;
    }
    .legal-section h2 {
        font-size: 1.4rem;
    }
}
