/*
 * Page — Legal (page-legal.php)
 * Shared template: Reklamačný poriadok, VOP, Ochrana osobných údajov, etc.
 * H1 from `legal_title` field, body from the WP editor.
 */

/* ── Breadcrumb bar (same as info page) ───────────────────────────────────── */
.breadcrumb {
    background: var(--color-white);
}

.breadcrumb__inner {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.breadcrumb__item {
    font-size: 14px;
    font-weight: var(--fw-light);
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb__item:hover {
    color: var(--color-dark);
}

.breadcrumb__item--current {
    color: var(--color-dark);
}

.breadcrumb__sep {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
    user-select: none;
}

/* ── Page layout ──────────────────────────────────────────────────────────── */
.legal-page {
    padding: 20px 0 100px;
}

.legal-page__title {
    max-width: 1076px;
    margin: 0 auto 50px;
    font-size: 48px;
    font-weight: var(--fw-semibold);
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    color: #000;
    word-break: break-word;
}

.legal-page__content {
    max-width: 1076px;
    margin: 0 auto;
}

/* ── Content typography (WP editor output) ────────────────────────────────── */
/* Subtitle, e.g. "Internetového obchodu mansset.sk" */
.legal-page__content h2 {
    font-size: 24px;
    font-weight: var(--fw-semibold);
    line-height: 1.6;
    color: #000;
    margin: 0 0 16px;
}

/* Numbered section headings: I. Identifikácia obchodníka … (red, uppercase) */
.legal-page__content h3,
.legal-page__content h4 {
    font-size: 16px;
    font-weight: var(--fw-bold);
    line-height: 1.6;
    text-transform: uppercase;
    color: #a82c46;
    margin: 0 0 16px;
}

.legal-page__content p {
    font-size: 16px;
    font-weight: var(--fw-regular);
    line-height: 1.6;
    color: #000;
    margin: 0 0 16px;
}

.legal-page__content ul,
.legal-page__content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.legal-page__content ul {
    list-style: disc;
}

.legal-page__content ol {
    list-style: decimal;
}

.legal-page__content li {
    display: list-item;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
}

.legal-page__content a {
    color: #000;
    text-decoration: underline;
}

.legal-page__content a:hover {
    opacity: 0.6;
}

.legal-page__content strong {
    font-weight: var(--fw-semibold);
}

.legal-page__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
}

.legal-page__content th,
.legal-page__content td {
    border: 1px solid #e5e5e5;
    padding: 12px 16px;
    font-size: 15px;
    text-align: left;
}

.legal-page__content th {
    background: #f5f6f5;
}

/* ── Adaptive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .legal-page {
        padding: 16px 0 60px;
    }

    .legal-page__title {
        font-size: 32px;
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .legal-page {
        padding: 12px 0 40px;
    }

    .legal-page__title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .legal-page__content h2 {
        font-size: 18px;
    }

    .legal-page__content h3,
    .legal-page__content h4 {
        font-size: 14px;
    }

    .legal-page__content p,
    .legal-page__content li {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .legal-page__content ul,
    .legal-page__content ol {
        margin-bottom: 12px;
        padding-left: 18px;
    }
}
