/* Legal pages */
.page-legal {
    background: #000000;
    color: #ffffff;
}

.page-legal .site-header {
    background: #000000;
}

.legal-page {
    width: min(900px, calc(100% - 48px));
    margin: 48px auto 80px;
}

.legal-page__header {
    margin-bottom: 28px;
}

.legal-page__header h1 {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 20px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.12;
}

.legal-page__header h1::after {
    content: "";
    display: block;
    width: 20px;
    height: 1px;
    margin-top: 15px;
    background: var(--color-accent);
}

.legal-page__updated {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    font-weight: 600;
}

.legal-card {
    padding: 40px 40px 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: #101010;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.legal-card__intro {
    max-width: 760px;
    margin: 0 auto 34px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
}

.legal-section + .legal-section {
    margin-top: 32px;
}

.legal-section h2,
.legal-section h3 {
    color: #ffffff;
    letter-spacing: -0.015em;
}

.legal-section h2 {
    position: relative;
    margin: 0 0 16px;
    padding-bottom: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.legal-section h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    margin-top: 10px;
    background: var(--color-accent);
}

.legal-section h3 {
    margin: 24px 0 12px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
}

.legal-section p,
.legal-section li,
.legal-table {
    color: #d8d8d8;
    font-size: 0.94rem;
    line-height: 1.8;
}

.legal-section p {
    margin: 0 0 12px;
}

.legal-section ul {
    margin: 0 0 14px;
    padding-left: 1.4rem;
}

.legal-section li + li {
    margin-top: 6px;
}

.legal-section a {
    color: #ffffff;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.legal-section a:hover,
.legal-section a:focus-visible {
    color: var(--color-accent);
}

.legal-contact-link {
    color: inherit;
    text-decoration: none;
}

.legal-section .legal-contact-link:hover,
.legal-section .legal-contact-link:focus-visible {
    color: var(--color-accent);
    text-decoration: none;
}


.legal-section a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.legal-table-wrap {
    width: 100%;
    margin: 14px 0 22px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.015);
}

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

.legal-table thead th {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.035);
    font-weight: 600;
}

.legal-table tbody th {
    width: 36%;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

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

@media (max-width: 47.99rem) {
    .legal-page {
        width: calc(100% - 20px);
        margin: 28px auto 60px;
    }

    .legal-page__header {
        margin-bottom: 22px;
    }

    .legal-card {
        padding: 25px 18px 35px;
        border-radius: 12px;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    }

    .legal-card__intro {
        margin-bottom: 28px;
        font-size: 0.92rem;
        line-height: 1.7;
        text-align: left;
    }

    .legal-section + .legal-section {
        margin-top: 28px;
    }

    .legal-section h2 {
        font-size: 1.06rem;
    }

    .legal-section h3 {
        font-size: 1rem;
    }

    .legal-section p,
    .legal-section li,
    .legal-table {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .legal-table th,
    .legal-table td {
        padding: 10px 11px;
    }
}

/* Cookie policy: two-line items on every screen size. */
.cookie-list {
    margin: 14px 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.015);
}

.cookie-list__head,
.cookie-entry__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.cookie-list__head {
    padding: 12px 14px;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.035);
}

.cookie-list__items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cookie-entry {
    padding: 14px;
    color: #d8d8d8;
    font-size: 0.94rem;
    line-height: 1.65;
}

.cookie-entry + .cookie-entry {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.cookie-entry__heading {
    font-weight: 600;
    color: #ffffff;
}

.cookie-entry__name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cookie-entry__duration {
    color: #d8d8d8;
    text-align: right;
    font-weight: 500;
}

.cookie-entry__details {
    margin-top: 10px;
}

.cookie-entry__label {
    display: block;
    margin-bottom: 3px;
    color: var(--color-accent);
    font-weight: 600;
}

.legal-section .cookie-entry__details p {
    margin: 0;
    line-height: 1.7;
}

@media (max-width: 47.99rem) {
    .cookie-list__head,
    .cookie-entry {
        padding: 11px;
        font-size: 0.88rem;
    }

    .cookie-list__head,
    .cookie-entry__heading {
        gap: 10px;
    }
}
