/* ── Legal pages — base styles ─────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

body.legal-body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #1E293B;
    background: #F8FAFC;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.legal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
}

.legal-logo {
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
    text-decoration: none;
    letter-spacing: -0.03em;
}

.legal-nav {
    display: flex;
    gap: 24px;
}

.legal-nav a {
    font-size: 13px;
    font-weight: 500;
    color: #64748B;
    text-decoration: none;
    transition: color 0.12s;
}

.legal-nav a:hover,
.legal-nav a.is-active {
    color: #1E293B;
}

/* ── Main ───────────────────────────────────────────────────────────── */
.legal-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.legal-article-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #E2E8F0;
}

.legal-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6366F1;
    margin: 0 0 10px;
}

.legal-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #0F172A;
    margin: 0 0 10px;
    line-height: 1.15;
}

.legal-meta {
    font-size: 13px;
    color: #94A3B8;
    margin: 0;
}

/* ── Body content ───────────────────────────────────────────────────── */
.legal-body-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.02em;
    margin: 40px 0 12px;
    padding-top: 8px;
}

.legal-body-content h3 {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 28px 0 8px;
}

.legal-body-content p {
    margin: 0 0 14px;
    color: #334155;
}

.legal-body-content ul,
.legal-body-content ol {
    margin: 0 0 14px;
    padding-left: 20px;
    color: #334155;
}

.legal-body-content li {
    margin-bottom: 6px;
}

.legal-body-content a {
    color: #6366F1;
    text-decoration: none;
}

.legal-body-content a:hover {
    text-decoration: underline;
}

.legal-body-content strong {
    color: #1E293B;
    font-weight: 600;
}

/* Info box */
.legal-infobox {
    background: #EEF2FF;
    border-left: 3px solid #6366F1;
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 20px 0;
}

.legal-infobox p {
    margin: 0;
    font-size: 14px;
    color: #3730A3;
}

/* Table */
.legal-table-wrap {
    overflow-x: auto;
    margin: 16px 0 24px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.legal-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748B;
    padding: 8px 12px;
    border-bottom: 2px solid #E2E8F0;
    white-space: nowrap;
}

.legal-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: top;
    color: #334155;
}

.legal-table tr:last-child td { border-bottom: 0; }

/* Contact box */
.legal-contact-box {
    margin-top: 40px;
    padding: 24px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
}

.legal-contact-box h2 {
    margin-top: 0;
    padding-top: 0;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.legal-footer {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: #94A3B8;
    border-top: 1px solid #E2E8F0;
}

.legal-footer a {
    color: #64748B;
    text-decoration: none;
}

.legal-footer a:hover { text-decoration: underline; }

/* ── Cookie banner ──────────────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1E293B;
    color: #CBD5E1;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner.is-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.cookie-banner a {
    color: #A5B4FC;
    text-decoration: underline;
}

.cookie-banner-accept {
    flex-shrink: 0;
    background: #6366F1;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.cookie-banner-accept:hover { background: #4F46E5; }

@media (max-width: 600px) {
    .legal-header { padding: 0 16px; }
    .legal-main { padding: 32px 16px 60px; }
    .legal-title { font-size: 24px; }
}
