:root {
    --primary: #08c45c;
    --bg: #f7f7f8;
    --surface: #ffffff;
    --surface-muted: #f1f2f4;
    --text: #151515;
    --text-soft: #60636b;
    --border: #e7e8ec;
    --shadow: 0 8px 24px rgba(22, 24, 29, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

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

.container {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 0 16px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.topbar-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: transparent;
    color: var(--primary);
}

.back svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand span span {
    color: var(--primary);
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-weight: 800;
}

.back svg {
    width: 18px;
    height: 18px;
}

.hero {
    padding: 34px 0 18px;
}

.hero-card {
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.eyebrow {
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #047b3a;
    font-size: 13px;
    font-weight: 800;
}

h1 {
    max-width: 760px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.05;
    font-weight: 800;
}

.lead {
    max-width: 760px;
    margin-top: 16px;
    color: var(--text-soft);
    font-size: 18px;
    font-weight: 600;
}

.notice {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 700;
}

.content {
    padding: 16px 0 54px;
}

.doc {
    display: grid;
    gap: 14px;
}

.section {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

h2 {
    margin-bottom: 10px;
    font-size: 23px;
    line-height: 1.25;
}

h3 {
    margin: 16px 0 8px;
    font-size: 17px;
}

p,
li {
    color: var(--text-soft);
    font-weight: 600;
}

ul,
ol {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding-left: 20px;
}

.details {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.detail {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    background: var(--surface-muted);
}

.detail strong {
    color: var(--text);
}

.footer {
    padding: 30px 0 36px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 28px;
}

.footer-brand {
    font-size: 20px;
    font-weight: 800;
}

.footer-brand span {
    color: var(--primary);
}

.footer p {
    max-width: 320px;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.footer-title {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 800;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.footer-links a {
    color: inherit;
}

@media (max-width: 640px) {
    .container {
        padding: 0 12px;
    }

    .topbar-inner {
        min-height: 58px;
    }

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .back span {
        display: none;
    }

    .hero {
        padding-top: 18px;
    }

    .hero-card,
    .section {
        padding: 20px;
    }

    .lead {
        font-size: 16px;
    }

    .detail {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Unified footer layout */
.footer {
    padding: 36px 0 42px;
    border-top: 1px solid var(--border, #e7e8ec);
    background: var(--surface, var(--bg-white, #fff));
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, 1fr));
    gap: 28px 44px;
    align-items: start;
}

.footer-grid > div:first-child {
    min-width: 0;
}

.footer-brand {
    max-width: none;
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
}

.footer-logo,
.footer-brand span {
    color: var(--primary, #08c45c);
}

.footer p,
.footer-desc {
    max-width: 340px;
    margin-top: 12px;
    color: var(--text-soft, var(--text-secondary, #60636b));
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.footer-title {
    margin-bottom: 12px;
    color: var(--text, #151515);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 9px;
    color: var(--text-soft, var(--text-secondary, #60636b));
    font-size: 14px;
    line-height: 1.25;
    font-weight: 650;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary, #08c45c);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 28px;
    }

    .footer-grid > div:first-child,
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .footer {
        padding: 24px 0 92px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-brand {
        font-size: 21px;
    }

    .footer p,
    .footer-desc {
        max-width: none;
        margin-top: 9px;
        font-size: 13px;
    }

    .footer-title {
        margin-bottom: 9px;
        font-size: 13px;
    }

    .footer-links {
        gap: 8px;
        font-size: 12px;
    }
}
