/* =============================================
   GROOEMBER LEGAL PAGES
   Shared styles for privacy.html and terms.html.
   Tone: dark hero strip carried over from the main
   site, light long-form body for readability.
============================================= */

body.groo-legal {
    background: #fff;
    color: #1a1a22;
    font-family: 'Pretendard', sans-serif;
    line-height: 1.7;
    margin: 0;
}


/* ---------- Hero strip ---------- */

.legal-hero {
    background: var(--groo-dark);
    color: #fff;
    padding: 140px 0 72px;
    position: relative;
    overflow: hidden;
}
.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(123, 93, 255, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(184, 255, 79, 0.06) 0%, transparent 55%);
    pointer-events: none;
}
.legal-hero-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}
.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(123, 93, 255, 0.15);
    border: 1px solid rgba(123, 93, 255, 0.28);
    color: #c4b5ff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.legal-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--groo-accent);
}
.legal-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
    color: #fff;
}
.legal-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}
.legal-meta strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}


/* ---------- Layout ---------- */

.legal-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 64px 24px 96px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: start;
}
@media (max-width: 991px) {
    .legal-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 24px 72px;
    }
}


/* ---------- TOC ---------- */

.legal-toc {
    position: sticky;
    top: 24px;
    border-left: 2px solid rgba(123, 93, 255, 0.18);
    padding: 4px 0 4px 18px;
}
@media (max-width: 991px) {
    .legal-toc {
        position: static;
        border-left: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 16px 0;
    }
}
.legal-toc-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--groo-purple);
    margin: 0 0 14px;
}
.legal-toc ol {
    list-style: none;
    counter-reset: toc;
    margin: 0;
    padding: 0;
}
.legal-toc li {
    counter-increment: toc;
    margin: 0 0 10px;
}
.legal-toc a {
    display: flex;
    gap: 10px;
    align-items: baseline;
    color: #555;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}
.legal-toc a::before {
    content: counter(toc, decimal-leading-zero);
    color: rgba(123, 93, 255, 0.45);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    min-width: 22px;
}
.legal-toc a:hover,
.legal-toc a:focus {
    color: var(--groo-purple);
}
.legal-toc a:hover::before,
.legal-toc a:focus::before {
    color: var(--groo-purple);
}


/* ---------- Article ---------- */

.legal-article {
    color: #2b2b34;
    font-size: 15.5px;
    line-height: 1.85;
}
.legal-article > section {
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.legal-article > section:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
}
.legal-article h2 {
    counter-increment: article-h2;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #0f0f17;
    margin: 0 0 16px;
    display: flex;
    gap: 14px;
    align-items: baseline;
}
.legal-article {
    counter-reset: article-h2;
}
.legal-article h2::before {
    content: counter(article-h2, decimal-leading-zero);
    font-size: 13px;
    font-weight: 700;
    color: var(--groo-purple);
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.legal-article h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a22;
    margin: 24px 0 8px;
}
.legal-article p {
    margin: 0 0 12px;
}
.legal-article ul,
.legal-article ol {
    margin: 0 0 16px;
    padding-left: 22px;
}
.legal-article li {
    margin-bottom: 6px;
}
.legal-article ul li::marker {
    color: var(--groo-purple);
}
.legal-article a {
    color: var(--groo-purple);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-article strong {
    color: #0f0f17;
    font-weight: 700;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 16px;
    font-size: 14.5px;
}
.legal-table th,
.legal-table td {
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}
.legal-table th {
    background: #f7f6fb;
    color: #0f0f17;
    font-weight: 700;
    font-size: 13.5px;
}

.legal-callout {
    background: linear-gradient(135deg, rgba(123, 93, 255, 0.06), rgba(184, 255, 79, 0.04));
    border: 1px solid rgba(123, 93, 255, 0.14);
    border-radius: 14px;
    padding: 18px 22px;
    margin: 12px 0 18px;
    font-size: 14.5px;
}
.legal-callout strong {
    color: var(--groo-purple);
}


/* ---------- Footer ---------- */

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 12px 22px;
    border-radius: 100px;
    background: var(--groo-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.legal-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 93, 255, 0.25);
    color: #fff;
}

.legal-foot {
    background: var(--groo-dark);
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    padding: 28px 24px;
    font-size: 13px;
}
.legal-foot a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    margin: 0 10px;
}
.legal-foot a:hover {
    color: var(--groo-accent);
}
