/**
 * Legal Document Styles
 * Shared styles for Privacy Policy, Terms & Conditions, Cookie Policy
 */

.legal-document-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.legal-document-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.legal-document-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary, #1a1a1a);
}

.document-metadata {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.version-badge {
    background: var(--primary-color, #007bff);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.effective-date {
    background: var(--secondary-color, #6c757d);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.language-note {
    margin-top: 20px;
    padding: 12px 20px;
    background: var(--info-bg, #e7f3ff);
    border-left: 4px solid var(--primary-color, #007bff);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-secondary, #555);
    text-align: left;
}

.language-note i {
    margin-right: 8px;
    color: var(--primary-color, #007bff);
}

.language-selector {
    margin-top: 20px;
}

.language-selector label {
    font-weight: 600;
    margin-right: 10px;
}

.language-buttons {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color, #ddd);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary, #333);
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: var(--hover-bg, #f8f9fa);
    border-color: var(--primary-color, #007bff);
}

.lang-btn.active {
    background: var(--primary-color, #007bff);
    color: white;
    border-color: var(--primary-color, #007bff);
}

.legal-document-content {
    background: var(--card-bg, white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.policy-summary,
.terms-summary {
    background: var(--info-bg, #e7f3ff);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color, #007bff);
}

.policy-summary h2,
.terms-summary h2 {
    color: var(--primary-color, #007bff);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.summary-content {
    color: var(--text-secondary, #555);
}

.policy-content,
.terms-content {
    color: var(--text-primary, #333);
}

.policy-content h2,
.terms-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-primary, #1a1a1a);
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.policy-content h3,
.terms-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-primary, #2a2a2a);
    font-size: 1.3rem;
}

.policy-content ul,
.policy-content ol,
.terms-content ul,
.terms-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-content li,
.terms-content li {
    margin-bottom: 10px;
}

.policy-content p,
.terms-content p {
    margin-bottom: 15px;
}

.legal-document-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color, #e0e0e0);
}

.last-updated {
    text-align: center;
    color: var(--text-muted, #6c757d);
    font-style: italic;
    margin-bottom: 30px;
}

.related-links {
    margin-bottom: 30px;
}

.related-links h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary, #1a1a1a);
}

.related-links ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.related-links li a {
    display: block;
    padding: 12px 16px;
    background: var(--light-bg, #f8f9fa);
    border-radius: 6px;
    color: var(--primary-color, #007bff);
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-links li a:hover {
    background: var(--primary-color, #007bff);
    color: white;
    transform: translateX(5px);
}

.contact-info {
    background: var(--light-bg, #f8f9fa);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary, #1a1a1a);
}

.contact-info a {
    color: var(--primary-color, #007bff);
    font-weight: 600;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* DPO Contact Section - GDPR Article 37-39 Compliance */
.dpo-contact-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    padding: 25px;
    border-radius: 10px;
    margin-top: 25px;
    border: 1px solid #d0e3f5;
}

.dpo-contact-section h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary, #1a1a1a);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dpo-contact-section h3::before {
    content: "\f3ed";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color, #007bff);
}

.dpo-intro {
    color: var(--text-secondary, #555);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.dpo-details {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dpo-details p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dpo-details p i {
    width: 20px;
    text-align: center;
    color: var(--primary-color, #007bff);
    font-size: 1rem;
}

.dpo-name strong {
    font-size: 1.1rem;
    color: var(--text-primary, #1a1a1a);
}

.dpo-email a {
    color: var(--primary-color, #007bff);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dpo-email a:hover {
    text-decoration: underline;
    color: var(--primary-hover, #0056b3);
}

.dpo-phone {
    color: var(--text-secondary, #555);
}

.dpo-rights {
    font-size: 0.9rem;
    color: var(--text-muted, #6c757d);
    font-style: italic;
    padding: 12px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color, #007bff);
    margin-top: 10px;
}

/* Dark mode for DPO section */
[data-theme="dark"] .dpo-contact-section {
    background: linear-gradient(135deg, #1a2a3a 0%, #1e3244 100%);
    border-color: #2a4a5a;
}

[data-theme="dark"] .dpo-contact-section h3 {
    color: #ffffff;
}

[data-theme="dark"] .dpo-intro {
    color: #b0c4d0;
}

[data-theme="dark"] .dpo-details {
    background: #2a3a4a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

[data-theme="dark"] .dpo-details p i {
    color: #64b5f6;
}

[data-theme="dark"] .dpo-name strong {
    color: #ffffff;
}

[data-theme="dark"] .dpo-email a {
    color: #64b5f6;
}

[data-theme="dark"] .dpo-email a:hover {
    color: #90caf9;
}

[data-theme="dark"] .dpo-phone {
    color: #b0c4d0;
}

[data-theme="dark"] .dpo-rights {
    background: rgba(100, 181, 246, 0.1);
    color: #90a4ae;
    border-left-color: #64b5f6;
}

.alert {
    padding: 20px;
    border-radius: 8px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #17a2b8;
    color: #0c5460;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

.alert i {
    font-size: 1.5rem;
}

/* Dark mode support */
[data-theme="dark"] .legal-document-container {
    color: #e0e0e0;
}

[data-theme="dark"] .legal-document-header h1,
[data-theme="dark"] .policy-content h2,
[data-theme="dark"] .policy-content h3,
[data-theme="dark"] .terms-content h2,
[data-theme="dark"] .terms-content h3,
[data-theme="dark"] .related-links h3,
[data-theme="dark"] .contact-info h3 {
    color: #ffffff;
}

[data-theme="dark"] .legal-document-content {
    background: #2a2a2a;
    color: #e0e0e0;
}

[data-theme="dark"] .policy-summary,
[data-theme="dark"] .terms-summary {
    background: #1a3a52;
    color: #b8d4e8;
}

[data-theme="dark"] .related-links li a {
    background: #3a3a3a;
    color: #64b5f6;
}

[data-theme="dark"] .related-links li a:hover {
    background: #1976d2;
    color: white;
}

[data-theme="dark"] .contact-info {
    background: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .alert-warning {
    background: #5a4a2a;
    border-color: #8a6a1a;
    color: #ffdb9a;
}

[data-theme="dark"] .alert-info {
    background: #1a3a4a;
    border-color: #2a5a6a;
    color: #a8d8e8;
}

[data-theme="dark"] .alert-success {
    background: #2a4a2a;
    border-color: #3a6a3a;
    color: #b8e8b8;
}

[data-theme="dark"] .alert-danger {
    background: #4a2a2a;
    border-color: #6a3a3a;
    color: #e8b8b8;
}

/* Additional Components for Cookie Policy and other pages */
.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary, #666);
    margin-top: 10px;
}

.policy-info {
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color, #007bff);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-hover, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

.cookie-explanation section {
    margin-bottom: 35px;
}

.cookie-explanation h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-primary, #1a1a1a);
}

.cookie-explanation h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary, #2a2a2a);
}

/* Do Not Sell page specific styles */
.data-rights-container .legal-document-header h1 i {
    margin-right: 15px;
}

.do-not-sell-explanation section {
    margin: 35px 0;
}

.do-not-sell-explanation h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-primary, #1a1a1a);
}

.do-not-sell-explanation h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary, #2a2a2a);
}

.do-not-sell-explanation ul {
    margin-left: 20px;
    margin-top: 15px;
}

.do-not-sell-explanation li {
    margin-bottom: 10px;
}

.do-not-sell-explanation li i {
    margin-right: 8px;
}

.opt-out-form {
    margin: 50px 0;
}

.opt-out-form h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-primary, #1a1a1a);
}

.opt-out-confirmation {
    background: var(--light-bg, #f8f9fa);
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.opt-out-confirmation ul {
    margin-left: 20px;
    margin-top: 15px;
}

.opt-out-confirmation li {
    margin-bottom: 10px;
}

.additional-info {
    margin: 50px 0;
}

.additional-info h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary, #1a1a1a);
}

.additional-info section {
    margin: 30px 0;
}

.additional-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary, #2a2a2a);
}

.additional-info ul {
    list-style: none;
    padding-left: 0;
}

.additional-info li {
    margin: 10px 0;
}

.additional-info a {
    color: var(--primary-color, #007bff);
    text-decoration: none;
    font-weight: 500;
}

.additional-info a:hover {
    text-decoration: underline;
}

/* Consent Preferences page specific styles */
.current-status {
    margin: 40px 0;
}

.current-status h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary, #1a1a1a);
}

.acceptance-details {
    background: var(--light-bg, #f8f9fa);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.acceptance-details p {
    margin: 10px 0;
}

.consent-form {
    margin: 40px 0;
}

.consent-form h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-primary, #1a1a1a);
}

.consent-options {
    margin: 30px 0;
}

.consent-option {
    background: var(--light-bg, #f8f9fa);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.consent-option label {
    display: flex;
    align-items: start;
    gap: 15px;
    cursor: pointer;
}

.consent-option input[type="checkbox"] {
    margin-top: 5px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.consent-option-content h4 {
    margin: 0 0 10px 0;
    color: var(--text-primary, #1a1a1a);
    font-size: 1.2rem;
}

.consent-option-content p {
    margin: 0;
    color: var(--text-secondary, #666);
}

.info-box {
    background: var(--info-bg, #e7f3ff);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color, #007bff);
    margin-top: 20px;
}

.info-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color, #007bff);
}

.text-muted {
    color: var(--text-muted, #6c757d);
}

.policy-links {
    margin: 40px 0;
    padding: 25px;
    background: var(--light-bg, #f8f9fa);
    border-radius: 8px;
}

.policy-links h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary, #1a1a1a);
}

.policy-links ul {
    list-style: none;
    padding: 0;
}

.policy-links li {
    margin: 10px 0;
}

.policy-links a {
    color: var(--primary-color, #007bff);
    text-decoration: none;
    font-weight: 500;
}

.policy-links a:hover {
    text-decoration: underline;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

/* Dark mode support for additional components */
[data-theme="dark"] .subtitle {
    color: #b0b0b0;
}

[data-theme="dark"] .cookie-explanation h2,
[data-theme="dark"] .do-not-sell-explanation h2,
[data-theme="dark"] .opt-out-form h2,
[data-theme="dark"] .additional-info h2,
[data-theme="dark"] .current-status h2,
[data-theme="dark"] .consent-form h2 {
    color: #ffffff;
}

[data-theme="dark"] .cookie-explanation h3,
[data-theme="dark"] .do-not-sell-explanation h3,
[data-theme="dark"] .additional-info h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .opt-out-confirmation {
    background: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .additional-info a {
    color: #64b5f6;
}

[data-theme="dark"] .acceptance-details {
    background: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .consent-option {
    background: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .consent-option-content h4 {
    color: #ffffff;
}

[data-theme="dark"] .consent-option-content p {
    color: #b0b0b0;
}

[data-theme="dark"] .info-box {
    background: #1a3a52;
    color: #b8d4e8;
}

[data-theme="dark"] .policy-links {
    background: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .policy-links h3 {
    color: #ffffff;
}

[data-theme="dark"] .policy-links a {
    color: #64b5f6;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-document-container {
        margin: 30px auto;
        padding: 0 15px;
    }

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

    .legal-document-content {
        padding: 25px 20px;
    }

    .document-metadata {
        flex-direction: column;
        align-items: center;
    }

    .related-links ul {
        grid-template-columns: 1fr;
    }
}
