/* Legal pages: Terms & Conditions, Privacy Policy (frontend/legal/page.blade.php).
   Hero + breadcrumb come from about.css; this file styles the body: a tinted band (#e5ecf5) with a sticky
   "On this page" list on the left and numbered white section cards on the right. Phones: one column, the list
   becomes a collapsible box above the cards. */

.lg-body { padding: 64px 0 72px; background: #e5ecf5; }
.lg-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; }

/* ---- left: on-this-page list + link to the other policy ---- */
.lg-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.lg-toc { padding: 22px 20px; border-radius: 16px; background: #fff; box-shadow: 0 14px 34px -22px rgba(13, 38, 70, .45); }
.lg-toc summary {
    display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none;
    margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #15416e;
}
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc summary .fa { display: none; font-size: 18px; transition: transform .25s ease; }
.lg-toc ol { margin: 0; padding: 0; list-style: none; }
.lg-toc li + li { margin-top: 2px; }
.lg-toc a {
    display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; border-left: 3px solid transparent;
    font-size: 14px; line-height: 1.4; color: #334155 !important; text-decoration: none !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.lg-toc a span { flex: 0 0 auto; font-weight: 700; font-size: 12px; line-height: 1.7; color: #94a3b8; }
.lg-toc a:hover { background: #f1f5fa; color: #15416e !important; }
.lg-toc a.is-active { background: #eef4fb; border-left-color: #f07f22; color: #15416e !important; font-weight: 600; }
.lg-toc a.is-active span { color: #f07f22; }

.lg-switch {
    display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px;
    background: linear-gradient(135deg, #1c68b5, #15416e); color: #fff !important; text-decoration: none !important;
    box-shadow: 0 14px 30px -18px rgba(21, 65, 110, .8); transition: transform .25s ease, box-shadow .25s ease;
}
.lg-switch:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -18px rgba(21, 65, 110, .9); }
.lg-switch .fa { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .16); font-size: 17px; }
.lg-switch span { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.lg-switch strong { display: block; margin-bottom: 2px; font-size: 15px; color: #fff; }

/* ---- right: numbered section cards ---- */
.lg-main { display: flex; flex-direction: column; gap: 18px; }
.lg-card {
    scroll-margin-top: 110px; padding: 28px 32px 26px; border-radius: 16px; background: #fff;
    border-top: 3px solid transparent; box-shadow: 0 14px 34px -24px rgba(13, 38, 70, .45);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.lg-card:hover { border-top-color: #f07f22; box-shadow: 0 18px 40px -22px rgba(13, 38, 70, .5); }
.lg-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.lg-card__num {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px;
    background: #eef4fb; font-family: Montserrat, Roboto, sans-serif; font-size: 15px; font-weight: 700; color: #1c68b5;
}
.lg-card h2 { margin: 0; font-family: Montserrat, Roboto, sans-serif; font-size: 21px; font-weight: 700; line-height: 1.3; color: #0b1d33; }
.lg-card p { margin: 0 0 12px; font-size: 16px; line-height: 1.75; color: #3c4a58; }
.lg-card p:last-child { margin-bottom: 0; }
.lg-card a, .lg-help p a { color: #1c68b5 !important; font-weight: 600; text-decoration: underline !important; text-underline-offset: 3px; }
.lg-card ul { margin: 0; padding: 0; list-style: none; }
.lg-card li { position: relative; margin-bottom: 10px; padding-left: 26px; font-size: 16px; line-height: 1.7; color: #3c4a58; }
.lg-card li:last-child { margin-bottom: 0; }
.lg-card li::before {
    content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%;
    background: #f07f22; box-shadow: 0 0 0 4px rgba(240, 127, 34, .16);
}

/* closing help band */
.lg-help {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 8px; padding: 28px 32px;
    border-radius: 16px; background: linear-gradient(135deg, #15416e, #0b1d33); color: #fff;
}
.lg-help h2 { margin: 0 0 6px; font-family: Montserrat, Roboto, sans-serif; font-size: 22px; font-weight: 700; color: #fff; }
.lg-help p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.lg-help p a { color: #ffb37a !important; }
.lg-help .ab-btn { flex: 0 0 auto; }

/* ---- phones / tablets ---- */
@media (max-width: 991px) {
    .lg-body { padding: 36px 0 48px; }
    .lg-grid { grid-template-columns: 1fr; gap: 18px; }
    .lg-aside { position: static; }
    .lg-toc { padding: 16px 18px; }
    .lg-toc summary { margin-bottom: 0; }
    .lg-toc summary .fa { display: block; }
    .lg-toc[open] summary { margin-bottom: 12px; }
    .lg-toc[open] summary .fa { transform: rotate(180deg); }
    .lg-switch { padding: 14px 18px; }
    .lg-card { scroll-margin-top: 80px; padding: 22px 18px 20px; }
    .lg-card__head { align-items: flex-start; gap: 12px; }
    .lg-card__num { width: 36px; height: 36px; font-size: 13px; }
    .lg-card h2 { font-size: 18px; padding-top: 6px; }
    .lg-card p, .lg-card li { font-size: 15px; line-height: 1.7; }
    .lg-help { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
}
