@import url("/css/fonts.css");

:root {
    color-scheme: dark;
    font-family: "Craftwork Grotesk", Arial, sans-serif;
    background: #1d1d21;
    color: #1d1d21;
}

* {
    box-sizing: border-box;
}

html {
    background: #1d1d21;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(237, 255, 64, 0.16), transparent 28rem),
        #1d1d21;
}

.legal-header {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    display: block;
    width: 72px;
    height: auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #edff40;
    color: #1d1d21;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.back-link:hover {
    transform: translateY(-1px);
    background: #f6ff89;
}

main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 64px;
}

.legal-card {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 64px);
    border-radius: 32px;
    background: #f8f8f3;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

h1 {
    max-width: 760px;
    margin: 0 0 38px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.legal-content {
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.legal-content h2 {
    margin: 40px 0 16px;
    font-size: clamp(21px, 3vw, 27px);
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.legal-content p {
    margin: 0 0 14px;
}

.legal-content ul {
    margin: 10px 0 24px;
    padding-left: 25px;
}

.legal-content li {
    margin: 5px 0;
    padding-left: 4px;
}

.legal-content li::marker {
    color: #849300;
}

.clause-number {
    font-weight: 600;
}

.legal-content a {
    color: #526000;
    font-weight: 600;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .legal-header,
    main {
        width: min(100% - 24px, 1120px);
    }

    .legal-header {
        padding-top: 18px;
    }

    .brand img {
        width: 56px;
    }

    .legal-card {
        padding: 26px 20px 34px;
        border-radius: 22px;
    }

    h1 {
        margin-bottom: 28px;
        font-size: 24px;
    }

    .legal-content {
        font-size: 15px;
        line-height: 1.6;
    }
}

@media print {
    :root,
    html,
    body {
        color-scheme: light;
        background: #fff;
    }

    .legal-header {
        display: none;
    }

    main {
        width: 100%;
        padding: 0;
    }

    .legal-card {
        max-width: none;
        padding: 0;
        box-shadow: none;
    }
}
