@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap");

:root {
    --header-height: 70.4px;
}

body header.head + main.legal-page {
    padding-top: var(--header-height);
}
 

.legal-page {
    font-family: "DM Sans", Arial, sans-serif;
    /* background: #f3f3f3; */
    color: #2a2829;
    min-height: 460px;
}

.legal-content {
    width: min(1190px, calc(100% - 24px));
    margin: 0 auto;

    #title {
        margin: 0 0 14px;
        font-size: 42px;
        line-height: 52px;
        font-weight: 700;
        text-align: left;
    }
}

.legal-country-select {
    padding: 48px 0 110px;
}

/* .legal-country-select h1 {
    margin: 0 0 14px;
    font-size: 42px;
    line-height: 52px;
    font-weight: 700;
} */

.legal-country-select p {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
}

.country-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.country-list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #005eb8;
    text-decoration: none;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

.flag {
    width: 28px;
    text-align: center;
}

.legal-resources {
    padding: 12px 0 58px;
}

.legal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 24px;
}

.legal-breadcrumb a {
    color: #005eb8;
    text-decoration: none;
    font-weight: 700;
}

.legal-breadcrumb span {
    color: #969ca8;
    font-weight: 500;
}

.legal-breadcrumb span:last-child {
    color: #272d3a;
    font-weight: 400;
}

.legal-resources h1 {
    margin: 0 0 16px;
    font-size: 42px;
    line-height: 52px;
    font-weight: 700;
}

.country-notice {
    margin: 0 0 18px;
    background: #fff7e5;
    border: 1px solid #e2e2e3;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 20px;
}

.legal-card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.legal-resource-card {
    background: #fbfbfc;
    border: 1px solid #e2e2e3;
    border-radius: 6px;
    min-height: 112px;
    padding: 12px;
    text-align: center;
}

.legal-resource-card > a {
    color: #005eb8;
    text-decoration: none;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.legal-resource-card .title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

.download-link {
    margin-top: 6px;
    display: inline-block;
    text-decoration: none;
    color: #005eb8;
    font-size: 14px;
    line-height: 20px;
}

.icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #005eb8;
}

.icon::before {
    font-size: 21px;
    line-height: 1;
}

.icon-file::before { content: "\1F4C4"; }
.icon-lock::before { content: "\1F512"; }
.icon-box::before { content: "\1F4E6"; }
.icon-refresh::before { content: "\21BB"; }
.icon-shield::before { content: "\1F6E1"; }

.legal-entities {
    background: #ffffff;
    border: 1px solid #e2e2e3;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 40px;
}

.legal-entities h2 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 30px;
}

.entity-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.entity-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border: 1px solid #e2e2e3;
    border-radius: 6px;
    padding: 10px 12px;
}

.entity-name {
    font-size: 16px;
    line-height: 24px;
    color: #272d3a;
}

.entity-actions {
    display: flex;
    gap: 10px;
}

.entity-actions a {
    color: #005eb8;
    text-decoration: none;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .legal-country-select h1,
    .legal-resources h1 { font-size: 30px; line-height: 38px; }

    .legal-country-select p { font-size: 24px; line-height: 32px; }

    .country-list a,
    .legal-resource-card .title { font-size: 16px; line-height: 24px; }

    .legal-card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .legal-resource-card {
        min-height: auto;
        padding: 16px;
        text-align: left;
    }

    .legal-resource-card > a {
        font-size: 16px;
        line-height: 24px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
    }
}
