.page-hero {
    position: relative;
    padding: calc(var(--nav-height) + 3rem) 0 2rem;
    overflow: clip;
}

.page-hero::before,
.page-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(8px);
}

.page-hero::before {
    top: 12%;
    right: -8rem;
    width: 22rem;
    height: 22rem;
    background: rgba(203, 92, 56, 0.18);
}

.page-hero::after {
    bottom: 10%;
    left: -7rem;
    width: 18rem;
    height: 18rem;
    background: rgba(41, 88, 71, 0.14);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: end;
}

.hero-copy {
    max-width: 42rem;
}

.hero-title {
    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 0.98;
    max-width: 10ch;
}

.hero-copy p {
    margin-top: 1.25rem;
    max-width: 38rem;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-meta,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.5rem;
}

.hero-meta {
    margin-top: 1.6rem;
    color: var(--muted);
    font-weight: 700;
}

.hero-side {
    padding: 1.5rem;
    border-radius: calc(var(--radius) + 8px);
    background: linear-gradient(135deg, rgba(255, 250, 243, 0.82), rgba(220, 231, 222, 0.84));
    box-shadow: var(--shadow);
}

.hero-side strong {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--leaf);
    font-size: 0.92rem;
    letter-spacing: 0.06em;
}

.hero-side p {
    color: var(--ink);
    margin-bottom: 1rem;
}

.hero-side p:last-of-type {
    margin-bottom: 0;
}

.updated {
    display: inline-flex;
    margin-top: 1rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.content-wrap {
    padding: 1rem 0 4.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.toc {
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
    padding: 1.35rem;
    border-radius: var(--radius);
    background: rgba(255, 250, 243, 0.52);
    border: 1px solid rgba(24, 38, 31, 0.08);
}

.toc h2 {
    font-size: 1rem;
    margin-bottom: 0.9rem;
}

.toc ol {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.toc a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.96rem;
}

.legal-panel {
    padding: clamp(1.3rem, 3vw, 2rem);
    border-radius: calc(var(--radius) + 8px);
    background: var(--panel-strong);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.notice {
    margin-bottom: 1.8rem;
    padding: 1.25rem 1.35rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, rgba(203, 92, 56, 0.1), rgba(239, 178, 135, 0.18));
    border: 1px solid rgba(203, 92, 56, 0.14);
}

.notice p {
    margin: 0;
}

.legal-section {
    padding: 1.55rem 0;
    border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-section h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    margin-bottom: 1rem;
}

.legal-section h3 {
    font-size: 1.04rem;
    margin: 1.2rem 0 0.7rem;
    color: var(--leaf);
}

.legal-section p,
.legal-section li {
    color: var(--muted);
}

.legal-section p {
    margin-bottom: 0.9rem;
}

.legal-section ul {
    padding-right: 1.2rem;
    margin-bottom: 0.9rem;
}

.legal-section li {
    margin-bottom: 0.45rem;
}

.legal-section strong {
    color: var(--ink);
}

.callout {
    margin: 1rem 0 1.2rem;
    padding: 1rem 1.15rem;
    border-right: 3px solid var(--accent);
    background: rgba(41, 88, 71, 0.06);
    border-radius: 1rem;
}

.post-cta {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(24, 38, 31, 0.96), rgba(41, 88, 71, 0.88));
    color: #fff9f0;
}

.post-cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.post-cta p {
    margin-top: 0.75rem;
    color: rgba(255, 249, 240, 0.8);
}

.post-cta .button-primary {
    background: #fff6ed;
    color: var(--ink);
}

.post-cta .button-secondary {
    border-color: rgba(255, 249, 240, 0.22);
    background: transparent;
    color: #fff9f0;
}

@media (max-width: 980px) {
    .hero-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
    }
}

@media (max-width: 760px) {
    .hero-title {
        font-size: clamp(2.2rem, 12vw, 3.3rem);
    }

    .hero-meta,
    .cta-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
