/* =====================================================================
   LooseMap — Legal pages (Privacy Policy, Terms & Conditions, Cookie Policy)
   Used with layouts/legal.blade.php. Uses :root tokens from the main layout.
   ===================================================================== */

/* ---------- Hero ---------- */
.lg-hero {
    color: #fff; padding: 3.25rem 0 2.75rem;
    background:
        radial-gradient(700px 300px at 90% 0%, rgba(217,164,65,.16), transparent 60%),
        linear-gradient(180deg, #1b2a38 0%, var(--eh-ink) 100%);
}
.lg-crumbs { font-size: .8rem; opacity: .85; margin-bottom: 1rem; }
.lg-crumbs a { color: #fff; text-decoration: none; }
.lg-crumbs a:hover { color: var(--eh-gold); }
.lg-crumbs span { margin: 0 .4rem; opacity: .6; }
.lg-hero-icon { width: 64px; height: 64px; border-radius: 20px; margin-bottom: 1rem; font-size: 1.8rem; color: var(--eh-gold); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; }
.lg-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: #fff; margin-bottom: .5rem; }
.lg-hero p.lead { font-size: clamp(.95rem, 2vw, 1.12rem); opacity: .88; max-width: 620px; margin: 0 0 1rem; }
.lg-updated { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .85rem; border-radius: 50px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: .78rem; }
.lg-updated i { color: var(--eh-gold); }

/* ---------- Sticky policy switcher ---------- */
.lg-nav { position: sticky; top: 57px; z-index: 30; background: rgba(250,247,242,.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(20,32,43,.08); }
.lg-nav .container { display: flex; gap: .5rem; overflow-x: auto; padding-top: .7rem; padding-bottom: .7rem; scrollbar-width: none; }
.lg-nav .container::-webkit-scrollbar { display: none; }
.lg-chip { white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-size: .85rem; font-weight: 600; color: var(--eh-ink); padding: .4rem 1rem; border-radius: 50px; border: 1px solid rgba(20,32,43,.15); transition: all .2s ease; }
.lg-chip:hover { border-color: var(--eh-gold); color: var(--eh-ink); }
.lg-chip i { color: #b07d1a; }
.lg-chip.is-active { background: var(--eh-ink); border-color: var(--eh-ink); color: #fff; }
.lg-chip.is-active i { color: var(--eh-gold); }

/* ---------- Body: TOC + content ---------- */
.lg-section { padding: 2.5rem 0 1.5rem; }
.lg-grid { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }

.lg-toc { position: sticky; top: 130px; background: #fff; border-radius: 20px; padding: 1.25rem 1.1rem; box-shadow: 0 4px 18px rgba(20,32,43,.08); }
.lg-toc h6 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #6b7280; font-weight: 700; margin: 0 0 .75rem .4rem; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.lg-toc li { counter-increment: toc; }
.lg-toc a {
    display: flex; gap: .65rem; align-items: baseline; padding: .5rem .6rem; border-radius: 10px;
    color: #3d4652; text-decoration: none; font-size: .88rem; line-height: 1.35; transition: background .2s ease, color .2s ease;
}
.lg-toc a::before { content: counter(toc, decimal-leading-zero); font-size: .72rem; font-weight: 700; color: #b8c0cb; transition: color .2s ease; }
.lg-toc a:hover { background: var(--eh-cream); color: var(--eh-ink); }
.lg-toc a.is-active { background: var(--eh-ink); color: #fff; }
.lg-toc a.is-active::before { color: var(--eh-gold); }

.lg-content { background: #fff; border-radius: 24px; padding: 2.25rem 2.5rem; box-shadow: 0 6px 24px rgba(20,32,43,.08); counter-reset: sec; }
.lg-content > p:first-child { font-size: 1.1rem; color: var(--eh-ink); line-height: 1.75; padding-bottom: 1.25rem; margin-bottom: .5rem; border-bottom: 1px solid rgba(20,32,43,.08); }
.lg-content h2 {
    counter-increment: sec; position: relative; scroll-margin-top: 130px;
    font-family: 'Playfair Display', serif; font-size: 1.45rem; font-weight: 700; color: var(--eh-ink);
    margin: 2.25rem 0 .75rem; padding-left: 1rem;
}
.lg-content h2::before { content: ''; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--eh-gold); }
.lg-content h2::after { content: counter(sec, decimal-leading-zero); position: absolute; right: 0; top: .15em; font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: #c8cfd8; }
.lg-content p, .lg-content li { color: #3d4652; line-height: 1.85; font-size: 1rem; }
.lg-content ul { padding-left: 1.2rem; }
.lg-content a { color: #b07d1a; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(176,125,26,.35); }
.lg-content a:hover { color: var(--eh-ink); border-bottom-color: var(--eh-ink); }

/* ---------- Bottom cards ---------- */
.lg-bottom { padding: 1.5rem 0 3rem; }
.lg-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.lg-related { background: #fff; border-radius: 22px; padding: 1.5rem; box-shadow: 0 4px 18px rgba(20,32,43,.08); }
.lg-related h5 { font-size: 1.15rem; margin-bottom: 1rem; }
.lg-related a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; margin-bottom: .5rem; border-radius: 14px; background: var(--eh-cream); color: var(--eh-ink); text-decoration: none; font-weight: 600; font-size: .92rem; transition: background .2s ease, transform .2s ease; }
.lg-related a:last-child { margin-bottom: 0; }
.lg-related a:hover { background: rgba(217,164,65,.22); transform: translateX(4px); }
.lg-related a span { display: inline-flex; align-items: center; gap: .6rem; }
.lg-related a span i { color: #b07d1a; }
.lg-help { background: var(--eh-ink); color: #fff; border-radius: 22px; padding: 1.75rem; position: relative; overflow: hidden; }
.lg-help h5 { font-size: 1.25rem; color: #fff; margin-bottom: .4rem; }
.lg-help p { color: #aab8c5; font-size: .92rem; margin-bottom: 1.25rem; }
.lg-help .btn { background: var(--eh-gold); color: var(--eh-ink); border: none; border-radius: 50px; font-weight: 700; padding: .6rem 1.4rem; }
.lg-help .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(217,164,65,.4); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .lg-grid { grid-template-columns: 1fr; }
    .lg-toc { position: static; }
    .lg-toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .5rem; }
}
@media (max-width: 767.98px) {
    .lg-bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .lg-hero { padding: 2.25rem 0 2rem; }
    .lg-content { padding: 1.4rem 1.25rem; border-radius: 20px; }
    .lg-content h2 { font-size: 1.25rem; }
    .lg-content h2::after { display: none; }
    .lg-toc ol { grid-template-columns: 1fr; }
}