.hc-legal,
.hc-legal * {
    box-sizing: border-box;
}

.hc-legal {
    width: 100%;
    padding: 56px 12px 80px;
    color: #1f1911;
    font-family: Onest, Arial, sans-serif;
}

.hc-legal__container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.hc-legal__header {
    display: flex;
    max-width: 980px;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.hc-legal__eyebrow,
.hc-legal__title,
.hc-legal__content h2,
.hc-legal__content h3,
.hc-legal__content p,
.hc-legal__content ul,
.hc-legal__contact dl,
.hc-legal__contact dd {
    margin: 0;
}

.hc-legal__eyebrow {
    color: #b0a89d;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

.hc-legal__title {
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: -0.02em;
}

.hc-legal__layout {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 32px;
}

.hc-legal__navigation {
    display: flex;
    width: calc(100% + 24px);
    gap: 8px;
    margin-left: -12px;
    padding: 0 12px 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.hc-legal__navigation::-webkit-scrollbar {
    display: none;
}

.hc-legal__navigation-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #e7e2da;
    border-radius: 8px;
    background: transparent;
    color: #7b6f5e;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.hc-legal__navigation-link:hover {
    border-color: #f6905c;
    color: #1f1911;
}

.hc-legal__navigation-link.is-active {
    border-color: #ff5500;
    background: #ff5500;
    color: #fff;
}

.hc-legal__content {
    min-width: 0;
    max-width: 900px;
}

.hc-legal__section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 0;
    border-top: 1px solid #e7e2da;
}

.hc-legal__section:first-child {
    padding-top: 0;
    border-top: 0;
}

.hc-legal__content h2 {
    color: #1f1911;
    font-size: 22px;
    font-weight: 600;
    line-height: 30px;
}

.hc-legal__content h3 {
    color: #423a2e;
    font-size: 17px;
    font-weight: 600;
    line-height: 24px;
}

.hc-legal__content p,
.hc-legal__content li {
    color: #423a2e;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

.hc-legal__content ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 24px;
}

.hc-legal__content li::marker {
    color: #f6905c;
}

.hc-legal__group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.hc-legal__contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 4px;
    padding: 20px;
    border-radius: 12px;
    background: #f3f0ec;
}

.hc-legal__contact dl {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hc-legal__contact dl > div {
    display: grid;
    grid-template-columns: minmax(70px, auto) minmax(0, 1fr);
    gap: 10px;
}

.hc-legal__contact dt {
    color: #7b6f5e;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}

.hc-legal__contact dd {
    min-width: 0;
}

.hc-legal__contact a {
    color: #ff5500;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.hc-legal__contact a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .hc-legal {
        padding: 80px 40px 120px;
    }

    .hc-legal__header {
        margin-bottom: 64px;
    }

    .hc-legal__title {
        font-size: 48px;
        line-height: 56px;
    }

    .hc-legal__section {
        gap: 20px;
        padding: 40px 0;
    }

    .hc-legal__content h2 {
        font-size: 26px;
        line-height: 34px;
    }

    .hc-legal__contact {
        padding: 24px;
    }
}

@media (min-width: 1000px) {
    .hc-legal {
        padding-right: 120px;
        padding-left: 120px;
    }

    .hc-legal__layout {
        display: grid;
        grid-template-columns: minmax(210px, 250px) minmax(0, 900px);
        align-items: start;
        gap: 64px;
    }

    .hc-legal__navigation {
        position: sticky;
        top: 110px;
        width: auto;
        flex-direction: column;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .hc-legal__navigation-link {
        white-space: normal;
    }
}

@media (min-width: 1920px) {
    .hc-legal {
        padding-right: 300px;
        padding-left: 300px;
    }
}
