@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Sans+KR:wght@400;500;700&family=Nunito:wght@700;800&display=swap');

:root {
    --bg-top: #f0fdf4;
    --bg-bottom: #f8fafc;
    --card: rgba(255, 255, 255, 0.92);
    --border: rgba(15, 23, 42, 0.08);
    --text: #0f172a;
    --muted: #475569;
    --accent: #16a34a;
    --accent-soft: rgba(22, 163, 74, 0.12);
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: 'Nunito', 'Noto Sans JP', 'Noto Sans KR', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 32%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 28%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
    -webkit-tap-highlight-color: transparent;
}

body.privacy-page {
    --accent: #0284c7;
    --accent-soft: rgba(2, 132, 199, 0.12);
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.logo-link {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.header-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.18s ease;
}

.header-link:hover {
    color: var(--accent);
}

.header-link.is-current {
    color: var(--accent);
}

.legal-shell {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.legal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.legal-topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--muted);
}

.brand-mark__dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #22c55e);
    box-shadow: 0 0 0 8px var(--accent-soft);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--muted);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.back-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.14);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
}

.lang-switch__btn {
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lang-switch__btn:hover {
    background: rgba(248, 250, 252, 0.92);
}

.lang-switch__btn.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.hero-card,
.toc-card,
.section-card,
.note-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-card {
    position: relative;
    overflow: hidden;
    padding: 32px;
    margin-bottom: 24px;
}

.hero-card::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -70px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, var(--accent-soft), transparent 66%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-card h1 {
    margin: 18px 0 12px;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.05;
}

.hero-card p {
    margin: 0;
    max-width: 680px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.74);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.toc-card {
    padding: 24px;
    margin-bottom: 24px;
}

.toc-title {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 800;
}

.toc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
    color: var(--muted);
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.toc-list a:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 163, 74, 0.3);
    background: rgba(255, 255, 255, 1);
}

.sections {
    display: grid;
    gap: 18px;
}

.section-card {
    padding: 24px;
}

.section-card h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 800;
}

.section-card p,
.section-card li {
    color: var(--muted);
    line-height: 1.8;
}

.section-card ul {
    margin: 0;
    padding-left: 18px;
}

.section-card li + li {
    margin-top: 6px;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 800;
}

.note-card {
    margin-top: 24px;
    padding: 22px 24px;
}

.note-card h2 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.note-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

@media (max-width: 720px) {
    .header-inner {
        width: min(100% - 20px, 960px);
        padding: 12px 0;
        flex-direction: column;
        align-items: stretch;
    }

    .header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-nav {
        gap: 10px 14px;
    }

    .legal-shell {
        width: min(100% - 20px, 960px);
        padding-top: 18px;
        padding-bottom: 36px;
    }

    .legal-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .legal-topbar__actions {
        justify-content: stretch;
    }

    .lang-switch {
        width: 100%;
        justify-content: center;
    }

    .back-link {
        justify-content: center;
    }

    .hero-card,
    .toc-card,
    .section-card,
    .note-card {
        border-radius: 24px;
    }

    .hero-card {
        padding: 24px 20px;
    }

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

    .toc-list {
        grid-template-columns: 1fr;
    }
}
