/* ============================================================
   Legal Pages (Terms, Privacy)  ·  lg- namespace
   Dark editorial layout matching the About page design.
   ============================================================ */

.lg-page { background: var(--color-black); min-height: 100vh; }

/* ── Masthead ────────────────────────────────────────────────── */
.lg-masthead { background: var(--color-black); color: var(--color-white); }
.lg-masthead__inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}
.lg-masthead__bar {
    display: flex;
    align-items: center;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.lg-masthead__back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}
.lg-masthead__back svg { flex-shrink: 0; transition: transform 0.2s; }
.lg-masthead__back:hover { color: var(--color-white); }
.lg-masthead__back:hover svg { transform: translateX(-3px); }
.lg-masthead__stage {
    padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem);
    max-width: 48rem;
}
.lg-masthead__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 0.75rem;
}
.lg-masthead__eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
}
.lg-masthead__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 0.6rem;
    color: var(--color-white);
}
.lg-masthead__meta {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.02em;
}

/* Subtitle */
.lg-masthead__sub {
    margin: 0 0 0.5rem;
    color: rgba(255,255,255,0.42);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ── Overview cards ──────────────────────────────────────────── */
.lg-overview {
    position: relative;
    background: var(--color-black);
    color: var(--color-white);
}
.lg-overview::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(201,169,122,0.08) 15%,
        rgba(201,169,122,0.22) 50%,
        rgba(201,169,122,0.08) 85%,
        transparent 100%
    );
}
.lg-overview__inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding: clamp(3rem, 5vw, 4.5rem) var(--container-pad);
}
.lg-overview__header {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto clamp(2rem, 3vw, 3rem);
}
.lg-overview__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 0.6rem;
}
.lg-overview__eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
}
.lg-overview__header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--color-white);
    margin: 0;
}
.lg-overview__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.75rem, 1.2vw, 1rem);
}
.lg-overview__card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: border-color 0.25s, background 0.25s;
}
.lg-overview__card:hover {
    border-color: rgba(201,169,122,0.2);
    background: rgba(255,255,255,0.05);
}
.lg-overview__card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(201,169,122,0.08);
    border: 1px solid rgba(201,169,122,0.15);
    color: var(--color-accent);
    font-size: 1rem;
    margin: 0 auto 0.25rem;
}
.lg-overview__card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
}
.lg-overview__card p {
    font-size: 0.82rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.45);
    margin: 0;
}

/* ── Content area ────────────────────────────────────────────── */
.lg-content {
    background: var(--color-black);
    color: var(--color-white);
    position: relative;
}
.lg-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(201,169,122,0.08) 15%,
        rgba(201,169,122,0.22) 50%,
        rgba(201,169,122,0.08) 85%,
        transparent 100%
    );
}
.lg-content__inner {
    max-width: 720px;
    margin-inline: auto;
    padding: clamp(2rem, 4vw, 3.5rem) var(--container-pad) clamp(4rem, 7vw, 6rem);
}

/* ── Typography for legal prose (dark theme) ─────────────────── */
.lg-content__inner h2 {
    position: relative;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--color-white);
    margin: 3rem 0 0.85rem;
    padding-top: 2rem;
}
.lg-content__inner h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 1px;
    background: rgba(201,169,122,0.35);
}
.lg-content__inner h2:first-child {
    margin-top: 0;
    padding-top: 0;
}
.lg-content__inner h2:first-child::before { display: none; }

.lg-content__inner h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin: 1.75rem 0 0.5rem;
}
.lg-content__inner p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
    margin: 0 0 1rem;
}
.lg-content__inner ul,
.lg-content__inner ol {
    padding-left: 1.25rem;
    margin: 0 0 1rem;
}
.lg-content__inner li {
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.35rem;
}
.lg-content__inner li strong {
    color: rgba(255,255,255,0.75);
}
.lg-content__inner a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}
.lg-content__inner a:hover { color: var(--color-white); }

.lg-content__inner strong { color: rgba(255,255,255,0.8); }

.lg-content__inner hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(201,169,122,0.08) 15%,
        rgba(201,169,122,0.22) 50%,
        rgba(201,169,122,0.08) 85%,
        transparent 100%
    );
    margin: 2.5rem 0;
}

/* Placeholder text */
.lg-placeholder {
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: 0.9rem;
    padding: 3rem 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (min-width: 641px) and (max-width: 1024px) {
    .lg-overview__cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .lg-masthead__inner   { padding-inline: 1rem; }
    .lg-overview__inner   { padding-inline: 1rem; }
    .lg-overview__cards   { grid-template-columns: 1fr; gap: 0.75rem; }
    .lg-overview__header  { text-align: left; }
    .lg-content__inner    { padding: 1.5rem 1rem 3rem; }
}
