* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #111111;
    background: #f6f6f6;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
}

.legal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 0 40px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e2e2e2;
    backdrop-filter: blur(14px);
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.legal-brand img {
    display: block;
    width: 160px;
    height: auto;
}

.legal-brand span {
    color: #007c89;
    font-size: 26px;
    font-weight: 800;
}

.legal-language,
.legal-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.legal-language a,
.legal-nav a {
    color: #333333;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
}

.legal-language a {
    padding: 7px 10px;
}

.legal-language a.is-active,
.legal-language a:hover,
.legal-nav a:hover {
    color: #ffffff;
    background: #007c89;
    border-color: #007c89;
}

.legal-page {
    width: min(100% - 40px, 1080px);
    margin: 0 auto;
    padding: 56px 0 64px;
}

.legal-hero {
    padding: 44px;
    background: #ffffff;
    border: 1px solid #dedede;
    border-radius: 8px;
}

.legal-hero p,
.legal-hero h1,
.legal-section-heading h2,
.legal-section-heading p,
.legal-block h3,
.legal-block p,
.legal-block ul {
    margin: 0;
}

.legal-hero > p:first-child {
    margin-bottom: 12px;
    color: #007c89;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.legal-hero h1 {
    max-width: 820px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
}

.legal-hero span {
    display: block;
    margin-top: 18px;
    color: #666666;
    font-size: 14px;
    font-weight: 700;
}

.legal-lead {
    max-width: 820px;
    margin-top: 22px !important;
    color: #3f3f3f;
    font-size: 18px;
}

.legal-nav {
    position: sticky;
    top: 76px;
    z-index: 8;
    margin-top: 18px;
    padding: 12px;
    background: rgba(246, 246, 246, 0.94);
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    backdrop-filter: blur(12px);
}

.legal-nav a {
    padding: 9px 12px;
}

.legal-note,
.legal-section {
    margin-top: 22px;
    background: #ffffff;
    border: 1px solid #dedede;
    border-radius: 8px;
}

.legal-note {
    padding: 22px 24px;
    border-left: 4px solid #007c89;
}

.legal-note strong {
    display: block;
    margin-bottom: 6px;
}

.legal-note p {
    margin: 0;
    color: #444444;
}

.legal-section {
    padding: 34px;
    scroll-margin-top: 150px;
}

.legal-section-heading {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 8px 18px;
    align-items: start;
    padding-bottom: 24px;
    border-bottom: 1px solid #e7e7e7;
}

.legal-section-heading span {
    grid-row: span 2;
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    color: #007c89;
    font-weight: 800;
    background: #eef6f7;
    border-radius: 999px;
}

.legal-section-heading h2 {
    font-size: 30px;
    line-height: 1.2;
}

.legal-section-heading p {
    max-width: 760px;
    color: #555555;
}

.legal-blocks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.legal-block {
    min-width: 0;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
}

.legal-block h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.legal-block p,
.legal-block li {
    color: #444444;
    font-size: 14px;
}

.legal-block ul {
    padding-left: 18px;
}

.legal-block li + li {
    margin-top: 7px;
}

.legal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 40px;
    color: #5a5a5a;
    background: #ffffff;
    border-top: 1px solid #e2e2e2;
    flex-wrap: wrap;
}

.legal-footer a {
    color: #007c89;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 760px) {
    .legal-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 20px;
    }

    .legal-page {
        width: min(100% - 24px, 1080px);
        padding-top: 24px;
    }

    .legal-hero,
    .legal-section {
        padding: 24px;
    }

    .legal-nav {
        position: static;
    }

    .legal-section-heading,
    .legal-blocks {
        grid-template-columns: 1fr;
    }

    .legal-section-heading span {
        grid-row: auto;
    }
}
