/* Yasal Sayfalar CSS */

/* Banner stilleri */
.legal-banner {
    background: var(--color-primary, #dc2626);
    min-height: 300px;
}

.hero-section.bg-primary {
    background: var(--color-primary, #dc2626) !important;
}

html.dark-mode .legal-banner,
html.dark-mode .hero-section.legal-banner {
    background: var(--color-primary-dark, #991b1b) !important;
    background-color: var(--color-primary-dark, #991b1b) !important;
}

.legal-banner h1,
.legal-banner p {
    color: #ffffff !important;
}

.hero-section.legal-banner h1,
.hero-section.legal-banner p {
    color: #ffffff !important;
}

/* ── İçerik tipografisi (klasik / açık tema) ── */
.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
    color: var(--color-text-heading, #0f172a);
}

.legal-content p,
.legal-content li,
.legal-content td {
    color: var(--color-text-body, #334155);
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    margin-bottom: 1rem;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content.prose h2 {
    border-bottom-color: #e2e8f0;
}

.legal-content code {
    background: rgb(241 245 249);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    color: #0f172a;
}

html.dark-mode .legal-content code {
    background: rgb(30 41 59);
    color: rgb(226 232 240);
}

.legal-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0 0 1px #e2e8f0;
}

.legal-content table thead,
.legal-content.prose table thead {
    background-color: var(--color-primary, #dc2626) !important;
    background: var(--color-primary, #dc2626) !important;
}

.legal-content table thead th,
.legal-content table thead td,
.legal-content.prose table thead th,
.legal-content.prose table thead td {
    color: #ffffff !important;
    padding: 0.875rem 1.125rem;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.legal-content table thead th:last-child,
.legal-content.prose table thead th:last-child {
    border-right: none;
}

.legal-content table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background var(--transition-hover, 0.2s ease);
}

.legal-content table tbody tr:last-child {
    border-bottom: none;
}

.legal-content table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.legal-content table tbody tr:hover {
    background: #eff6ff;
}

.legal-content table tbody td {
    padding: 0.875rem 1.125rem;
    border-right: 1px solid #e2e8f0;
    vertical-align: middle;
    color: var(--color-text-body, #334155);
}

.legal-content table tbody td:last-child {
    border-right: none;
}

.legal-content table tbody td:first-child {
    font-weight: 600;
}

html.dark-mode .legal-content table {
    box-shadow: 0 0 0 1px #334155;
}

html.dark-mode .legal-content table thead,
html.dark-mode .legal-content.prose table thead {
    background-color: var(--color-primary, #dc2626) !important;
    background: var(--color-primary, #dc2626) !important;
}

html.dark-mode .legal-content table thead th,
html.dark-mode .legal-content table thead td {
    color: #ffffff !important;
    border-right-color: rgba(255, 255, 255, 0.15) !important;
}

html.dark-mode .legal-content table tbody tr:nth-child(even) {
    background: #1e293b;
}

html.dark-mode .legal-content table tbody tr:hover {
    background: #1e3a5f;
}

html.dark-mode .legal-content table tbody td {
    border-color: #334155;
    color: #cbd5e1;
}

.legal-content a {
    color: var(--color-primary, #dc2626);
    text-decoration: underline;
}

.legal-content a:hover {
    opacity: 0.85;
}

.legal-callout {
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: var(--border-radius-base, 0.5rem);
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

html.dark-mode .legal-callout {
    background: #1e293b;
    border-color: #334155;
}

/* İstasyon kartları */
.legal-card-icon {
    background: var(--color-primary-alpha, rgba(220, 38, 38, 0.08));
    color: var(--color-primary, #dc2626);
}

.legal-card-link {
    color: var(--color-primary, #dc2626);
}

.legal-card-bg-icon {
    color: var(--color-primary, #dc2626);
}

/* ── solid_all: cam kart + yüksek kontrast metin ── */
html[data-zebra-mode="solid_all"] main.legal-page .legal-page-card,
html[data-solid-all="1"] main.legal-page .legal-page-card {
    background: var(--glass-bg, rgba(255, 255, 255, 0.12)) !important;
    backdrop-filter: var(--glass-blur, blur(12px)) !important;
    -webkit-backdrop-filter: var(--glass-blur, blur(12px)) !important;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.2)) !important;
    box-shadow: var(--glass-shadow, 0 4px 24px rgba(0, 0, 0, 0.18)) !important;
}

html[data-zebra-mode="solid_all"] main.legal-page .legal-content h1,
html[data-zebra-mode="solid_all"] main.legal-page .legal-content h2,
html[data-zebra-mode="solid_all"] main.legal-page .legal-content h3,
html[data-zebra-mode="solid_all"] main.legal-page .legal-content h4,
html[data-zebra-mode="solid_all"] main.legal-page .legal-content strong,
html[data-zebra-mode="solid_all"] main.legal-page .legal-content b,
html[data-zebra-mode="solid_all"] main.legal-page .legal-content li strong,
html[data-solid-all="1"] main.legal-page .legal-content h1,
html[data-solid-all="1"] main.legal-page .legal-content h2,
html[data-solid-all="1"] main.legal-page .legal-content h3,
html[data-solid-all="1"] main.legal-page .legal-content h4,
html[data-solid-all="1"] main.legal-page .legal-content strong,
html[data-solid-all="1"] main.legal-page .legal-content b,
html[data-solid-all="1"] main.legal-page .legal-content li strong {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

html[data-zebra-mode="solid_all"] main.legal-page .legal-content p,
html[data-zebra-mode="solid_all"] main.legal-page .legal-content li,
html[data-zebra-mode="solid_all"] main.legal-page .legal-content td,
html[data-zebra-mode="solid_all"] main.legal-page .legal-content .legal-callout,
html[data-solid-all="1"] main.legal-page .legal-content p,
html[data-solid-all="1"] main.legal-page .legal-content li,
html[data-solid-all="1"] main.legal-page .legal-content td,
html[data-solid-all="1"] main.legal-page .legal-content .legal-callout {
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
}

html[data-zebra-mode="solid_all"] main.legal-page .legal-content.prose h2,
html[data-solid-all="1"] main.legal-page .legal-content.prose h2 {
    border-bottom-color: rgba(255, 255, 255, 0.22) !important;
}

html[data-zebra-mode="solid_all"] main.legal-page .legal-content code,
html[data-solid-all="1"] main.legal-page .legal-content code {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

html[data-zebra-mode="solid_all"] main.legal-page .legal-content a,
html[data-solid-all="1"] main.legal-page .legal-content a {
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: underline;
}

html[data-zebra-mode="solid_all"] main.legal-page .legal-callout,
html[data-solid-all="1"] main.legal-page .legal-callout {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

html[data-zebra-mode="solid_all"] main.legal-page a.legal-station-card h2,
html[data-zebra-mode="solid_all"] main.legal-page a.legal-station-card p,
html[data-zebra-mode="solid_all"] main.legal-page a.legal-station-card span,
html[data-solid-all="1"] main.legal-page a.legal-station-card h2,
html[data-solid-all="1"] main.legal-page a.legal-station-card p,
html[data-solid-all="1"] main.legal-page a.legal-station-card span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

html[data-zebra-mode="solid_all"] .legal-card-icon,
html[data-solid-all="1"] .legal-card-icon {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

html[data-zebra-mode="solid_all"] .legal-card-link,
html[data-solid-all="1"] .legal-card-link {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-zebra-mode="solid_all"] .legal-card-bg-icon,
html[data-solid-all="1"] .legal-card-bg-icon {
    color: rgba(255, 255, 255, 0.18) !important;
}

@media (max-width: 768px) {
    .legal-content {
        font-size: 0.9375rem;
    }

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

    .legal-content h3 {
        font-size: 1.25rem;
    }
}

.legal-banner-bg-icon {
    font-size: 16rem;
    opacity: 0.08;
    color: #ffffff;
    line-height: 1;
}

@media (max-width: 768px) {
    .legal-banner-bg-icon {
        font-size: 8rem;
        opacity: 0.06;
        position: absolute;
        right: 1rem;
    }
}
