/* Legal Pages Common Styles (Privacy, Terms, Safety) */

.legal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #dee2e6;
}

.legal-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.025);
    transition: transform 0.2s;
}

.legal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
}

.section-title {
    color: #e91e63;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.section-icon {
    font-size: 1.5rem;
    margin-inline-end: 0.75rem;
    color: #e91e63;
}

.subsection-title {
    color: #2c3e50;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Table of Contents */
.toc-sticky {
    position: sticky;
    top: 100px;
}

.toc-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #6c757d;
    text-decoration: none;
    border-right: 3px solid transparent;
    transition: all 0.2s;
}

/* RTL Specifics for TOC */
html[dir="rtl"] .toc-link {
    border-right: 3px solid transparent;
    border-left: none;
}
html[dir="ltr"] .toc-link {
    border-left: 3px solid transparent;
    border-right: none;
}

.toc-link:hover, .toc-link.active {
    color: #e91e63;
    background-color: #f8f9fa;
    font-weight: 600;
}

html[dir="rtl"] .toc-link:hover, html[dir="rtl"] .toc-link.active {
    border-right-color: #e91e63;
}
html[dir="ltr"] .toc-link:hover, html[dir="ltr"] .toc-link.active {
    border-left-color: #e91e63;
}

/* Notice Boxes */
.notice-box {
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.notice-box-success {
    background-color: #f0fdf4; /* Light green */
    border: 1px solid #bbf7d0;
    color: #166534;
}

.notice-box-danger {
    background-color: #fef2f2; /* Light red/pink */
    border: 1px solid #fecaca;
    color: #991b1b;
}

.notice-box-warning {
    background-color: #fffbeb; /* Light yellow/amber */
    border: 1px solid #fde68a;
    color: #92400e;
}

.notice-box-info {
    background-color: #eff6ff; /* Light blue */
    border: 1px solid #dbeafe;
    color: #1e40af;
}

.contact-box {
    background-color: #eff6ff; /* Light blue */
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

/* Lists */
.bullet-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.bullet-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-inline-start: 1.2rem;
}

.bullet-list li::before {
    content: "•";
    color: #e91e63;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-inline-start: -1em;
    position: absolute;
    left: 0;
}

html[dir="rtl"] .bullet-list li::before {
    right: 0;
    left: auto;
}

/* Safety Page Specifics */
.commitment-box {
    background-color: #e91e63;
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

.commitment-box h3, .commitment-box h5 {
    color: white;
}

.commitment-list li::before {
    color: white;
}

/* ===============================================
   DARK MODE SUPPORT FOR LEGAL PAGES
   =============================================== */

/* Header Dark Mode */
[data-bs-theme="dark"] .legal-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Cards Dark Mode */
[data-bs-theme="dark"] .legal-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .legal-card:hover {
    background: #334155;
    border-color: rgba(233, 30, 99, 0.3);
    box-shadow: 0 0.5rem 1rem rgba(233, 30, 99, 0.15);
}

/* Section Titles Dark Mode */
[data-bs-theme="dark"] .section-title {
    color: #f48fb1;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .section-icon {
    color: #f48fb1;
}

[data-bs-theme="dark"] .subsection-title {
    color: #cbd5e1;
}

/* Table of Contents Dark Mode */
[data-bs-theme="dark"] .toc-link {
    color: #94a3b8;
    border-color: transparent;
}

[data-bs-theme="dark"] .toc-link:hover,
[data-bs-theme="dark"] .toc-link.active {
    color: #f48fb1;
    background-color: rgba(233, 30, 99, 0.1);
    font-weight: 600;
}

html[dir="rtl"][data-bs-theme="dark"] .toc-link:hover,
html[dir="rtl"][data-bs-theme="dark"] .toc-link.active {
    border-right-color: #f48fb1;
}

html[dir="ltr"][data-bs-theme="dark"] .toc-link:hover,
html[dir="ltr"][data-bs-theme="dark"] .toc-link.active {
    border-left-color: #f48fb1;
}

/* Notice Boxes Dark Mode */
[data-bs-theme="dark"] .notice-box-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #86efac;
}

[data-bs-theme="dark"] .notice-box-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

[data-bs-theme="dark"] .notice-box-warning {
    background-color: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.3);
    color: #fcd34d;
}

[data-bs-theme="dark"] .notice-box-info {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* Contact Box Dark Mode */
[data-bs-theme="dark"] .contact-box {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #e2e8f0;
}

/* Bullet Lists Dark Mode */
[data-bs-theme="dark"] .bullet-list li {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .bullet-list li::before {
    color: #f48fb1;
}

/* Text Colors Dark Mode */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .text-dark {
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .text-secondary {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .text-muted {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] p {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #334155 !important;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .bg-white {
    background-color: #1e293b !important;
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Commitment Box Dark Mode */
[data-bs-theme="dark"] .commitment-box {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] .commitment-box h3,
[data-bs-theme="dark"] .commitment-box h5 {
    color: #fff;
}

[data-bs-theme="dark"] .commitment-list li::before {
    color: #fff;
}

[data-bs-theme="dark"] .bg-white.bg-opacity-10 {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
}

/* Additional Dark Mode Fixes for Terms Page */
[data-bs-theme="dark"] .card {
    background-color: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .card-body {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .card h5 {
    color: #f1f5f9;
}
