.legal-page {
    background:
        radial-gradient(circle at 10% 15%, rgba(207,115,95,0.13), transparent 28rem),
        radial-gradient(circle at 89% 35%, rgba(185,200,176,0.25), transparent 30rem),
        var(--cream);
}

.legal-page::after {
    position: fixed;
    right: -180px;
    top: 190px;
    z-index: -1;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(23,33,31,0.08);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 50px rgba(23,33,31,0.015), 0 0 0 100px rgba(23,33,31,0.01);
}

.legal-header { position: relative; }
.legal-back { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,253,249,0.55); font-size: 0.72rem; font-weight: 800; text-decoration: none; transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease; }
.legal-back:hover { color: white; background: var(--night); transform: translateY(-2px); }
.legal-back span { font-size: 1rem; }

.legal-main { display: grid; grid-template-columns: 0.7fr 1.3fr; align-items: start; gap: 72px; padding-top: 110px; padding-bottom: 100px; }
.legal-intro { position: sticky; top: 45px; padding-top: 28px; }
.legal-intro h1 { margin: 0 0 44px; font-size: clamp(4.3rem, 7vw, 7rem); line-height: 0.87; }
.legal-intro h1 em { color: var(--coral); font-weight: 400; }
.legal-intro > p:last-child { max-width: 350px; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.updated { display: inline-block; margin-bottom: 28px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: rgba(255,253,249,0.48); font-size: 0.62rem; font-weight: 700; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.08em; }
.updated strong { color: var(--ink); }

.legal-card { position: relative; overflow: hidden; padding: 34px 52px 20px; border: 1px solid rgba(255,255,255,0.8); border-radius: 32px; background: rgba(255,253,249,0.78); box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.legal-card::before { position: absolute; top: -75px; right: -70px; width: 190px; height: 190px; border: 1px solid rgba(207,115,95,0.13); border-radius: 50%; content: ""; box-shadow: 0 0 0 28px rgba(207,115,95,0.025); }
.legal-marker { padding-bottom: 28px; border-bottom: 1px solid var(--line); color: var(--coral-dark); font-family: var(--font-display); font-size: 0.78rem; font-style: italic; letter-spacing: 0.08em; }
.legal-card section { padding: 31px 0 24px; border-bottom: 1px solid var(--line); }
.legal-card section:last-child { border-bottom: 0; }
.legal-card h2 { display: flex; align-items: baseline; gap: 13px; margin: 0 0 14px; font-family: var(--font-display); font-size: 1.58rem; font-weight: 400; letter-spacing: -0.015em; }
.legal-card h2 span { color: var(--coral); font-family: var(--font-sans); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em; }
.legal-card p { margin: 0; color: #505c58; font-size: 0.88rem; line-height: 1.8; }
.legal-card a { color: var(--coral-dark); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.legal-footer { display: flex; align-items: center; justify-content: space-between; padding-block: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.68rem; }
.legal-footer div { display: flex; gap: 22px; }
.legal-footer a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: none; }
.legal-footer a[aria-current="page"], .legal-footer a:hover { color: var(--coral-dark); }

@media (max-width: 800px) {
    .legal-main { grid-template-columns: 1fr; gap: 30px; padding-top: 95px; }
    .legal-intro { position: static; }
    .legal-intro h1 { margin-bottom: 30px; }
    .legal-intro > p:last-child { max-width: 540px; }
}

@media (max-width: 560px) {
    .legal-back { padding: 11px; }
    .legal-back span { font-size: 1.1rem; }
    .legal-back { font-size: 0; }
    .legal-main { padding-top: 78px; padding-bottom: 65px; }
    .legal-intro h1 { font-size: 4.1rem; }
    .legal-card { padding: 28px 23px 12px; border-radius: 24px; }
    .legal-card section { padding: 25px 0 21px; }
    .legal-card h2 { gap: 9px; font-size: 1.28rem; }
    .legal-card p { font-size: 0.82rem; }
    .legal-footer { flex-direction: column; gap: 18px; }
}
