/* Shared styles for legal pages — mirrors the styled-components rules used on the main page */

* {
    box-sizing: border-box;
}

html, body {
    padding: 0;
    margin: 0;
}

body {
    color: #09133B;
    background: #03051d;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

p, h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

ul, ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

button {
    width: auto;
    border: 0;
    padding: 0;
    background: none;
    margin: 0;
    text-align: inherit;
    color: inherit;
    font: inherit;
    line-height: normal;
    cursor: pointer;
}

img {
    max-width: 100%;
}

/* ---------- Layout container (theme__Container) ---------- */
.container {
    width: 1280px;
    padding: 0 40px;
    margin: 0 auto;
}

/* ---------- Header ---------- */
.header-root {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 13;
}

.header-root::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 200px;
    width: 100%;
    background: linear-gradient(180deg, #03051d 20.21%, rgba(4, 7, 34, 0) 100%);
    z-index: -1;
}

.header-bar {
    position: absolute;
    left: 0;
    top: 31px;
    width: 100%;
    padding: 16px 0;
    z-index: 3;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: inline-block;
    line-height: 0;
}

.header-nav-item {
    display: inline-block;
    font-size: 14px;
    color: #9B9CA5;
    text-transform: uppercase;
    margin-left: 44px;
    transition: color 0.3s ease;
}

.header-nav-item:first-child {
    margin-left: 0;
}

.header-nav-item:hover {
    color: #FFFFFF;
}

.header-burger {
    display: none;
}

.header-burger span {
    width: 21px;
    height: 2px;
    background: #fff;
    margin-bottom: 4px;
    transition: 0.4s;
}

.header-burger span:nth-child(3) {
    width: 11px;
    margin-bottom: 0;
}

.header-burger.is-open span:nth-child(1) {
    transform-origin: left bottom;
    transform: rotateZ(45deg) translate(4px, 3px);
}

.header-burger.is-open span:nth-child(2) {
    transform-origin: center top;
    transform: rotateZ(-45deg);
}

.header-burger.is-open span:nth-child(3) {
    opacity: 0;
}

/* ---------- Mobile menu ---------- */
.menu-root {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 144px 0 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate3d(0, -100%, 0);
    transition: 0.4s;
    background: #04061b;
}

.menu-root.is-active {
    transform: translate3d(0, 0, 0);
}

.menu-nav-item {
    display: block;
    margin-bottom: 34px;
    font-size: 14px;
    color: #9B9CA5;
    text-transform: uppercase;
}

.menu-nav-item:last-child {
    margin-bottom: 0;
}

/* ---------- Legal content ---------- */
.legal-main {
    position: relative;
    padding: 200px 0 110px;
    min-height: 60vh;
}

.legal-title {
    font-weight: 600;
    font-size: 40px;
    line-height: 56px;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.legal-effective {
    font-size: 14px;
    color: #81838E;
    margin-bottom: 48px;
}

.legal-body {
    max-width: 900px;
}

.legal-body h2 {
    font-weight: 600;
    font-size: 24px;
    line-height: 33px;
    color: #FFFFFF;
    margin: 40px 0 16px;
}

.legal-body p {
    font-size: 16px;
    line-height: 26px;
    color: #9B9CA5;
    margin-bottom: 16px;
}

.legal-body a {
    color: #60aec8;
    transition: color 0.3s ease;
}

.legal-body a:hover {
    color: #FFFFFF;
}

.legal-body ul {
    margin-bottom: 16px;
}

.legal-body ul li {
    position: relative;
    display: block;
    padding-left: 39px;
    font-size: 16px;
    line-height: 26px;
    color: #9B9CA5;
    margin-bottom: 8px;
}

.legal-body ul li::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    left: 0;
    top: 11px;
    background: linear-gradient(to right, #060b20, #4e8ea7);
}

.legal-body ol {
    margin-bottom: 16px;
    counter-reset: legal-list;
}

.legal-body ol li {
    position: relative;
    display: block;
    padding-left: 39px;
    font-size: 16px;
    line-height: 26px;
    color: #9B9CA5;
    margin-bottom: 12px;
    counter-increment: legal-list;
}

.legal-body ol li::before {
    content: counter(legal-list) '.';
    position: absolute;
    left: 0;
    top: 0;
    color: #60aec8;
    font-weight: 600;
}

.legal-body li strong,
.legal-body p strong {
    color: #FFFFFF;
    font-weight: 600;
}

/* ---------- Footer ---------- */
.footer-root {
    padding: 32px 0;
    background: #05091F;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo-wrapper {
    color: #9B9CA5;
}

.footer-logo-wrapper img {
    margin-bottom: 24px;
}

.footer-copy {
    font-size: 12px;
    line-height: 18px;
}

.footer-link {
    display: block;
    font-size: 14px;
    color: #9B9CA5;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-link:last-child {
    margin-bottom: 0;
}

.footer-link:hover {
    color: #FFFFFF;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 0 6px;
    margin-top: 24px;
}

.footer-social-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 33px;
    height: 33px;
}

.footer-documents {
    flex-shrink: 0;
    text-align: right;
}

.footer-support-email {
    position: relative;
    display: inline-block;
    font-size: 14px;
    color: #fff;
    margin-top: 24px;
}

.footer-support-email::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #fff;
}

/* ---------- Responsive: md <= 1279px ---------- */
@media screen and (max-width: 1279px) {
    .container {
        width: 768px;
        padding: 0 24px;
    }

    .header-root::before {
        display: none;
    }

    .header-bar {
        padding: 15px 0;
    }

    .header-nav {
        display: none;
    }

    .header-burger {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .footer-copy {
        font-size: 11px;
    }

    .footer-socials {
        gap: 0 5px;
    }

    .footer-social-item {
        width: 29px;
        height: 29px;
    }
}

/* ---------- Responsive: sm <= 779px ---------- */
@media screen and (max-width: 779px) {
    .container {
        width: 290px;
        padding: 0;
    }

    .header-bar {
        top: 37px;
        padding: 0;
    }

    .menu-root {
        padding: 133px 0 51px;
    }

    .legal-main {
        padding: 150px 0 70px;
    }

    .legal-title {
        font-size: 26px;
        line-height: 36px;
    }

    .legal-body h2 {
        font-size: 20px;
        line-height: 28px;
        margin: 32px 0 12px;
    }

    .legal-body p,
    .legal-body ul li,
    .legal-body ol li {
        font-size: 14px;
        line-height: 22px;
    }

    .footer-root {
        padding: 38px 0;
    }

    .footer-row {
        display: block;
    }

    .footer-documents {
        display: flex;
        flex-direction: column-reverse;
        text-align: left;
    }

    .footer-socials {
        margin-bottom: 38px;
    }

    .footer-social-item {
        width: 23px;
        height: 23px;
    }

    .footer-social-item svg {
        max-height: 12px;
        width: auto;
    }
}
