/* ===========================
   Legal Pages Stylesheet
   =========================== */

/* Legal Page Container */
.legal-page {
    min-height: 100vh;
    padding: 6rem 0 4rem;
    background: var(--bg-dark);
}

/* Legal Header */
.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.legal-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: white;
    margin-bottom: 1rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
}

.legal-updated {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Legal Content */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.legal-intro {
    background: #f1f5f9;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    margin-bottom: 3rem;
}

.legal-intro p {
    line-height: 1.8;
    color: #475569;
    margin: 0;
}

/* Legal Sections */
.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.legal-section h2 {
    font-size: 1.75rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: white;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.legal-section h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.legal-section h4 {
    font-size: 1.1rem;
    color: #1e293b;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.legal-section p {
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    line-height: 1.8;
    color: #475569;
    margin-bottom: 0.5rem;
}

.legal-section li strong {
    color: #1e293b;
    font-weight: 600;
}

/* Purpose Boxes */
.purpose-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.purpose-box h4 {
    color: #3b82f6;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.purpose-box h4 i {
    color: #10b981;
}

.purpose-box ul {
    margin-left: 1.5rem;
    margin-bottom: 0;
}

.purpose-box li {
    margin-bottom: 0.5rem;
}

/* Retention Table */
.retention-table {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.retention-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 2fr;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.retention-row:last-child {
    border-bottom: none;
}

.retention-row:hover {
    background: #f8fafc;
}

.retention-row > div {
    padding: 1rem 1.5rem;
    color: #475569;
}

.retention-label {
    font-weight: 600;
    color: #1e293b;
    border-right: 1px solid #e2e8f0;
}

.retention-period {
    font-weight: 600;
    color: #3b82f6;
    border-right: 1px solid #e2e8f0;
}

.retention-reason {
    font-size: 0.9rem;
}

/* Delegation Table */
.delegation-table {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.delegation-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.delegation-row:last-child {
    border-bottom: none;
}

.delegation-row:hover {
    background: #f8fafc;
}

.delegation-row > div {
    padding: 1rem 1.5rem;
    color: #475569;
}

.delegation-company {
    font-weight: 600;
    color: #1e293b;
    border-right: 1px solid #e2e8f0;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.right-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

.right-card i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.right-card h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.right-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* Contact Info Box */
.contact-info-box {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.contact-info-box h4 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.contact-info-box p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info-box p i {
    color: rgba(255, 255, 255, 0.8);
}

.contact-info-box p strong {
    color: white;
}

.contact-info-box .note {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Manager Box */
.manager-box {
    background: #f8fafc;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
}

.manager-box h4 {
    color: #3b82f6;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.manager-box p {
    color: #475569;
    margin-bottom: 0.75rem;
}

.manager-box p strong {
    color: #1e293b;
    margin-right: 0.5rem;
}

/* Version Box */
.version-box {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    margin: 1.5rem 0;
}

.version-box p {
    margin-bottom: 0.5rem;
}

.version-box p:last-child {
    margin-bottom: 0;
}

/* Note */
.note {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #06b6d4;
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.note i {
    color: #06b6d4;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.note p {
    margin: 0;
}

/* Legal Footer */
.legal-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.legal-footer p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.legal-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding: 5rem 0 2rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
        border-radius: 0;
    }

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

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

    .section-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .retention-row,
    .delegation-row {
        grid-template-columns: 1fr;
    }

    .retention-row > div,
    .delegation-row > div {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 0.75rem 1rem;
    }

    .retention-row > div:last-child,
    .delegation-row > div:last-child {
        border-bottom: none;
    }

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

    .contact-info-box,
    .manager-box {
        padding: 1.5rem;
    }

    .legal-intro {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 1.5rem 1rem;
    }

    .legal-section h2 {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }

    .right-card i {
        font-size: 2rem;
    }
}
