@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --terms-marine: #0f0f3f;
    --terms-mist: #d4dbe1;
    --terms-paper: rgba(255, 255, 255, .77);
}

* { box-sizing: border-box; }

html { background: var(--terms-mist); }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--terms-marine);
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(132deg, #d4dbe1 0%, #f8f9fa 100%);
}

.terms-page {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    padding: 96px max(56px, calc((100vw - 1210px) / 2)) 80px;
    overflow: hidden;
}

.terms-frame,
.terms-hand {
    position: absolute;
    pointer-events: none;
}

.terms-frame {
    z-index: -1;
    inset: 26px 0 0;
    background: url('/match-quiz/assets/figma-full-motif.svg') center top / min(1800px, calc(100% - 112px)) auto no-repeat;
}

.terms-hand {
    z-index: -2;
    right: -110px;
    bottom: -120px;
    width: min(52vw, 900px);
    height: min(83vh, 820px);
    background: linear-gradient(90deg, rgba(212, 219, 225, 0) 24%, rgba(212, 219, 225, .08)), url('/match-quiz/assets/hero-ring-hand.png') center right / cover no-repeat;
    opacity: .44;
}

.terms-card {
    width: min(780px, 100%);
    margin: 0 auto;
    padding: 34px clamp(28px, 5vw, 62px) 42px;
    border: 1px solid rgba(15, 15, 63, .2);
    background: var(--terms-paper);
    box-shadow: 0 20px 70px rgba(15, 15, 63, .1);
    backdrop-filter: blur(10px);
}

.terms-logo {
    display: block;
    width: min(310px, 76vw);
    margin: 0 auto 25px;
}

.terms-kicker,
.terms-campaign {
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .18em;
}

.terms-kicker { margin-bottom: 16px; }

.terms-card h1 {
    margin: 0;
    text-align: center;
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.045em;
}

.terms-campaign {
    margin-top: 18px;
    color: rgba(15, 15, 63, .7);
    font-size: 10px;
}

.terms-content {
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid rgba(15, 15, 63, .2);
    font-size: 15px;
    line-height: 1.72;
}

.terms-content > :first-child { margin-top: 0; }
.terms-content > :last-child { margin-bottom: 0; }
.terms-content h2,
.terms-content h3 { font-family: 'Bodoni Moda', serif; font-weight: 400; line-height: 1.1; }
.terms-content h2 { margin: 32px 0 12px; font-size: 30px; }
.terms-content h3 { margin: 24px 0 10px; font-size: 23px; }
.terms-content p { margin: 0 0 18px; }
.terms-content ul,
.terms-content ol { margin: 0 0 18px; padding-left: 1.35em; }
.terms-content a,
.terms-back-link { color: var(--terms-marine); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.terms-back-link {
    display: block;
    width: fit-content;
    margin: 38px auto 0;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
}

@media (max-width: 700px) {
    .terms-page { padding: 32px 20px 52px; }
    .terms-frame { inset: 18px 0 auto; height: 325px; background-size: calc(100% - 40px) auto; }
    .terms-hand { right: -138px; bottom: -100px; width: 620px; height: 430px; opacity: .18; }
    .terms-card { padding: 26px 22px 30px; }
    .terms-logo { width: min(260px, 78vw); margin-bottom: 20px; }
    .terms-kicker { margin-bottom: 14px; font-size: 10px; }
    .terms-campaign { font-size: 9px; }
    .terms-content { margin-top: 28px; padding-top: 22px; font-size: 14px; line-height: 1.65; }
    .terms-content h2 { font-size: 27px; }
    .terms-content h3 { font-size: 21px; }
}
