/* Legal pages (Terms / Privacy / Refund) — scoped under .legal, on-brand with the landing palette */

.company-policyContent.legal {
    max-width: 880px;
    width: 100%;
    margin: clamp(32px, 5vw, 64px) auto;
}

.legal .title {
    text-align: left;
    margin-bottom: 16px;
}

.legal-updated {
    display: inline-block;
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--landing-deep-accent);
    background: var(--landing-bg-soft);
    border: 1px solid var(--landing-accent-ghost);
    padding: 6px 14px;
    border-radius: var(--br-1);
    margin-bottom: 32px;
}

.legal-block {
    background: #fff;
    border: 1px solid #e7eeec;
    border-radius: var(--br-2);
    padding: clamp(20px, 4vw, 40px);
    margin-bottom: 24px;
    box-shadow: 0 2px 16px rgba(47, 58, 58, .04);
}

/* Intro block — same card styling as the rest, with extra spacing below */
.legal-block.legal-intro {
    margin-bottom: 32px;
}

.legal-section-title {
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
    color: var(--landing-deep-accent);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--landing-bg-soft);
}

.legal-h {
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2.2vw, 21px);
    line-height: 1.3;
    color: var(--landing-neutral-dark);
    margin: 28px 0 10px;
}

.legal-block > .legal-h:first-child,
.legal-section-title + .legal-h {
    margin-top: 0;
}

.legal-sub {
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--landing-accent);
    margin: 22px 0 6px;
}

.legal p {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--landing-neutral-dark);
    margin: 0 0 14px;
}

.legal p:last-child {
    margin-bottom: 0;
}

.legal-lead {
    margin-bottom: 10px !important;
}

.legal a {
    color: var(--landing-deep-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--landing-accent-ghost);
    transition: var(--transition-0_3s);
}

.legal a:hover {
    color: var(--landing-accent);
    border-bottom-color: var(--landing-accent);
}

.legal-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.legal-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--landing-neutral-dark);
}

.legal-list li:last-child {
    margin-bottom: 0;
}

.legal-list li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--landing-primary);
}

.legal-requisites {
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--landing-muted);
    margin-top: 16px;
}

.legal-requisites a {
    color: var(--landing-muted);
    border-bottom-color: transparent;
}

.legal-requisites a:hover {
    color: var(--landing-deep-accent);
}

@media screen and (max-width: 768px) {
    .company-policyContent.legal {
        margin: 24px auto;
    }
}
