/* ========================================
   JOGI OLDALAK (adatvédelem, felhasználási feltételek)
   A style.css változóit és színvilágát követi.
   ======================================== */

.legal {
    padding-top: clamp(8rem, 18vh, 12rem);
    padding-bottom: clamp(4rem, 10vh, 7rem);
}

/* A hosszú, folyamatos szöveg olvashatóbb szűkebb hasábban,
   ezért a .container 1400px-énél jóval keskenyebbre fogjuk. */
.legal .container {
    max-width: 860px;
}

/* --- Vissza link (a category-hero__back mintájára) --- */
.legal__back {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a8580;
    margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
    transition: color 0.3s ease;
}

.legal__back:hover,
.legal__back:focus-visible {
    color: #e8e4df;
}

.legal__back-line {
    width: 30px;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.legal__back:hover .legal__back-line {
    width: 45px;
}

/* --- Fejléc --- */
.legal__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

.legal__title em {
    font-style: italic;
    color: #c4beb8;
}

.legal__meta {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a8580;
    margin: 0 0 clamp(2rem, 5vh, 3rem);
    padding-bottom: clamp(2rem, 5vh, 3rem);
    border-bottom: 1px solid rgba(232, 228, 223, 0.15);
}

.legal__lead {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-weight: 300;
    line-height: 1.8;
    color: #d9d1c9;
    margin: 0 0 clamp(2rem, 5vh, 3rem);
}

/* --- Szövegtörzs --- */
.legal h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.3;
    color: #f5f3f0;
    margin: clamp(2.5rem, 6vh, 4rem) 0 1rem;
}

.legal h3 {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #e8e4df;
    margin: clamp(1.75rem, 4vh, 2.5rem) 0 0.75rem;
}

.legal p {
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    font-weight: 300;
    line-height: 1.85;
    color: #c4beb8;
    margin: 0 0 1.15rem;
}

.legal strong {
    color: #e8e4df;
    font-weight: 500;
}

.legal em {
    color: #d9d1c9;
}

.legal a {
    color: #e8e4df;
    text-decoration: underline;
    text-underline-offset: 0.25em;
    text-decoration-color: rgba(232, 228, 223, 0.35);
    transition: text-decoration-color 0.3s ease, opacity 0.3s ease;
}

.legal a:hover,
.legal a:focus-visible {
    text-decoration-color: #e8e4df;
    opacity: 0.85;
}

.legal code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85em;
    padding: 0.15em 0.4em;
    background: rgba(232, 228, 223, 0.08);
    border-radius: 2px;
    color: #e8e4df;
}

/* Jogszabályi hivatkozás — halványabb, kisebb kísérőszöveg */
.legal__ref {
    display: inline-block;
    font-size: 0.78em;
    color: #8a8580;
    font-style: italic;
}

/* --- Listák --- */
.legal__list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.legal__list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    font-weight: 300;
    line-height: 1.85;
    color: #c4beb8;
    margin-bottom: 0.6rem;
}

.legal__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 8px;
    height: 1px;
    background: #8a8580;
}

/* --- Táblázatok --- */
.legal__table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.75rem;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    font-weight: 300;
    line-height: 1.7;
}

.legal__table th,
.legal__table td {
    text-align: left;
    vertical-align: top;
    padding: 0.85rem 1rem 0.85rem 0;
    border-bottom: 1px solid rgba(232, 228, 223, 0.1);
    color: #c4beb8;
}

.legal__table thead th {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a8580;
    border-bottom-color: rgba(232, 228, 223, 0.25);
    padding-top: 0;
}

.legal__table tbody th {
    font-weight: 400;
    color: #8a8580;
    white-space: nowrap;
    padding-right: 2rem;
}

.legal__table td:last-child,
.legal__table th:last-child {
    padding-right: 0;
}

/* Mobilon a széles táblázat vízszintesen görgethető,
   hogy soha ne tolja szét az oldalt. */
@media (max-width: 600px) {
    .legal__table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .legal__table tbody th {
        padding-right: 1.25rem;
    }
}

/* --- Záró megjegyzés --- */
.legal__footer-note {
    margin-top: clamp(3rem, 7vh, 4.5rem);
    padding-top: clamp(1.5rem, 4vh, 2rem);
    border-top: 1px solid rgba(232, 228, 223, 0.15);
    font-size: 0.8rem !important;
    color: #8a8580 !important;
    font-style: italic;
}
