/* Legal Pages Styles */
.legal-container {
    display: flex;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
}

.legal-sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 2rem;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.legal-nav h3 {
    color: #0f0f3f;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.legal-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #6c757d;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.legal-nav-link:hover,
.legal-nav-link.active {
    background: #0f0f3f;
    color: white;
    text-decoration: none;
}

.legal-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
}

.legal-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.legal-section h2 {
    color: #0f0f3f;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-content-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

/* Privacy Notice Styles */
.privacy-notice h3 {
    color: #0f0f3f;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.privacy-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.privacy-section:last-child {
    border-bottom: none;
}

.privacy-section h4 {
    color: #0f0f3f;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.privacy-section ul {
    padding-left: 1.5rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
}

/* Terms and Conditions Styles */
.terms-content h3 {
    color: #0f0f3f;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.terms-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.terms-section:last-child {
    border-bottom: none;
}

.terms-section h4 {
    color: #0f0f3f;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Consent Management Styles */
.consent-management h3 {
    color: #0f0f3f;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.consent-status h4 {
    color: #0f0f3f;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.consent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.consent-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.consent-item:hover {
    border-color: #0f0f3f;
    box-shadow: 0 4px 12px rgba(15, 15, 63, 0.1);
}

.consent-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.consent-info h5 {
    color: #0f0f3f;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.consent-info p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.consent-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.consent-status.active {
    background: #d4edda;
    color: #155724;
}

.consent-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.consent-required {
    color: #dc3545;
    font-size: 0.8rem;
    font-weight: 600;
}

.toggle-consent {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

.consent-actions {
    margin-bottom: 2rem;
}

.consent-actions h4 {
    color: #0f0f3f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.consent-history h4 {
    color: #0f0f3f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.history-timeline {
    border-left: 2px solid #e9ecef;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: #0f0f3f;
    border-radius: 50%;
}

/* ARCO Request Styles */
.arco-request-form h3 {
    color: #0f0f3f;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.arco-description {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h4 {
    color: #0f0f3f;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.request-type-options {
    display: grid;
    gap: 1rem;
}

.form-check {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    font-weight: 500;
    line-height: 1.4;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #0f0f3f;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0f0f3f;
    box-shadow: 0 0 0 3px rgba(15, 15, 63, 0.1);
}

.form-group small {
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-info h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.alert-info ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.alert-info li {
    margin-bottom: 0.25rem;
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Retention Policy Styles */
.retention-policy h3 {
    color: #0f0f3f;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.retention-table {
    margin-bottom: 2rem;
}

.retention-table h4 {
    color: #0f0f3f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.retention-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.retention-table th {
    background: #0f0f3f;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.retention-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.retention-table tr:last-child td {
    border-bottom: none;
}

.retention-table tr:nth-child(even) {
    background: #f8f9fa;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    background: #0f0f3f;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h5 {
    color: #0f0f3f;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.step-content p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.retention-exceptions h4 {
    color: #0f0f3f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.retention-exceptions ul {
    padding-left: 1.5rem;
}

.retention-exceptions li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* International Transfers Styles */
.international-transfers h3 {
    color: #0f0f3f;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.transfer-info h4 {
    color: #0f0f3f;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.transfer-destinations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.destination {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.destination h5 {
    color: #0f0f3f;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.destination p {
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.adequacy-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.adequacy-status.adequate {
    background: #d4edda;
    color: #155724;
}

.safeguards h4 {
    color: #0f0f3f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.safeguards ul {
    padding-left: 1.5rem;
}

.safeguards li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.transfer-log h4 {
    color: #0f0f3f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.transfer-log p {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.transfer-log ul {
    padding-left: 1.5rem;
}

.transfer-log li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Legal Contact Styles */
.legal-contact h3 {
    color: #0f0f3f;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: #0f0f3f;
    box-shadow: 0 4px 12px rgba(15, 15, 63, 0.1);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-card h4 {
    color: #0f0f3f;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.contact-card p {
    color: #0f0f3f;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-card small {
    color: #6c757d;
    font-size: 0.8rem;
}

.response-times h4,
.office-hours h4 {
    color: #0f0f3f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.response-times ul {
    padding-left: 1.5rem;
}

.response-times li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.office-hours p {
    color: #6c757d;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-container {
        flex-direction: column;
    }
    
    .legal-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .legal-content {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .consent-grid {
        grid-template-columns: 1fr;
    }
    
    .transfer-destinations {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .legal-sidebar {
        display: none;
    }
    
    .legal-content {
        padding: 0;
    }
    
    .legal-content-box {
        box-shadow: none;
        border: none;
    }
} 