/* ================================================
   321SPEED / SVĚT SPORŤÁKŮ – PRÁVNÍ STRÁNKY
   styles/legal.css
   (Obchodní podmínky, Zpracování osobních údajů, Cookies)
   ================================================ */

.legal {
    background: #050505;
    padding: 70px 0 90px;
    position: relative;
}

.legal-wrap {
    max-width: 880px;
    margin: 0 auto;
}

/* ── Úvodní blok ── */
.legal-eyebrow {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.legal-lead {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 26px;
}

.legal-updated {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--text-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 40px;
}

/* ── Sekce / nadpisy ── */
.legal-section {
    margin-bottom: 38px;
}

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.legal-section h3 {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 600;
    color: #fff;
    margin: 26px 0 10px;
}

.legal-section p,
.legal-section li {
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.75;
    font-size: 0.98rem;
}

.legal-section p {
    margin-bottom: 14px;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.legal-section strong {
    color: #fff;
}

/* ── Číslovaný seznam podmínek ── */
ol.legal-list {
    list-style: none;
    counter-reset: legal;
    padding: 0;
    margin: 0;
}

ol.legal-list > li {
    counter-increment: legal;
    position: relative;
    padding: 16px 0 16px 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

ol.legal-list > li:last-child {
    border-bottom: none;
}

ol.legal-list > li::before {
    content: counter(legal);
    position: absolute;
    left: 0;
    top: 16px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
    background: rgba(255, 45, 45, 0.08);
    border: 1px solid rgba(255, 45, 45, 0.25);
    border-radius: 10px;
}

/* Vnořené odrážky a), b), c) */
ol.legal-list ul {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

ol.legal-list ul li {
    position: relative;
    padding-left: 20px;
    margin-top: 6px;
}

ol.legal-list ul li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ── Definiční / info karty (GDPR, cookies) ── */
.legal-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 24px 26px;
    margin-bottom: 18px;
}

.legal-card h3 {
    margin-top: 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 20px;
    font-size: 0.94rem;
}

.legal-table th,
.legal-table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.66);
    vertical-align: top;
}

.legal-table th {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
}

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

/* ── Kontaktní blok ── */
.legal-contact {
    background: linear-gradient(135deg, rgba(255, 45, 45, 0.08), rgba(255, 45, 45, 0.02));
    border: 1px solid rgba(255, 45, 45, 0.2);
    border-radius: 14px;
    padding: 26px 28px;
    margin-top: 30px;
}

.legal-contact h3 {
    margin-top: 0;
}

.legal-contact p {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .legal { padding: 50px 0 70px; }
    ol.legal-list > li { padding-left: 46px; }
    ol.legal-list > li::before { width: 32px; height: 32px; }
    .legal-table { display: block; overflow-x: auto; }
}
