:root {
    --bg: #f6f6f5;
    --text: #1f1f25;
    --muted: #55555b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
}

.page {
    width: min(980px, 100% - 48px);
    margin: 0 auto;
    min-height: 100vh;
}

.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 22px;
    text-align: center;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0.01em;
    color: var(--muted);
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(85, 85, 91, 0.35);
    padding-bottom: 1px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--text);
    border-bottom-color: rgba(31, 31, 37, 0.45);
}

.home-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 0 110px;
}

.home-hero-content {
    width: 100%;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 36px;
}

.home-hero h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(2.5rem, 7.4vw, 6.2rem);
    line-height: 1.06;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.hero-image-wrap {
    position: relative;
    width: min(360px, 100%);
}

.hero-image-wrap::before {
    content: "";
    position: absolute;
    inset: -18px -22px 18px 22px;
    border-radius: 30px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(232, 232, 232, 0.9));
    z-index: 0;
}

.hero-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 26px;
    border: 1px solid rgba(31, 31, 37, 0.12);
    box-shadow: 0 26px 54px rgba(17, 17, 20, 0.16);
    transform: rotate(-1deg);
}

.legal {
    padding: 96px 0 120px;
}

.legal h1 {
    margin: 0 0 36px;
    font-size: clamp(2.1rem, 5.6vw, 4rem);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.legal h2 {
    margin: 34px 0 12px;
    font-size: clamp(1.2rem, 2.8vw, 1.6rem);
    line-height: 1.25;
    font-weight: 500;
}

.legal p {
    margin: 0;
    max-width: 760px;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.75;
    color: #3b3b43;
}

@media (max-width: 640px) {
    .page {
        width: min(980px, 100% - 30px);
    }

    .home-hero {
        padding: 52px 0 84px;
    }

    .home-hero-content {
        gap: 22px;
    }

    .hero-image-wrap::before {
        inset: -10px -10px 10px 10px;
        border-radius: 18px;
    }

    .hero-image {
        border-radius: 16px;
        transform: none;
    }

    .legal {
        padding: 64px 0 96px;
    }

    .site-footer {
        bottom: 16px;
        font-size: 13px;
    }
}
