/* Legal hub: Terms, Privacy, Cookies, Refunds, Partners (shared layout) + footer "Legal" column */
.footer-legal-col { display: grid; gap: 7px; align-content: start; min-width: 11em; }
.footer-legal-col strong { color: var(--ink); font-size: .85rem; margin-bottom: 2px; }
.footer-legal-col a { color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 500; line-height: 1.35; }
.footer-legal-col a:hover { text-decoration: underline; }

.lg { background: var(--bg-alt); }
.lg .lg-hero { padding: 64px 22px 40px; }
.lg .lg-hero h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); max-width: 22ch; margin-inline: auto; overflow-wrap: anywhere; }
.lg-lede { max-width: 38em; margin: 14px auto 0; color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.25rem); line-height: 1.45; }
.lg .legal-updated { margin-top: 16px; }
.lg-wrap { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 36px; max-width: 1120px; margin: 0 auto; padding: 8px 22px 96px; align-items: start; }
.lg-side { position: sticky; top: 72px; display: grid; gap: 14px; max-height: calc(100vh - 88px); overflow: auto; overscroll-behavior: contain; }
.lg-docs, .lg-toc { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 16px 14px; }
.lg-docs-h { display: block; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 0 8px 8px; }
.lg-docs ul, .lg-toc ol { list-style: none; display: grid; gap: 2px; margin: 0; padding: 0; }
.lg-docs li a, .lg-toc a { display: block; padding: 7px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: .9rem; line-height: 1.3; }
.lg-docs li a:hover, .lg-toc a:hover { background: var(--bg-alt); }
.lg-docs li a[aria-current="page"] { background: rgba(0, 113, 227, .1); color: var(--blue); font-weight: 600; }
.lg-toc summary { cursor: pointer; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 8px 8px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s var(--ease); margin-inline-end: 4px; }
.lg-toc[open] summary::after { transform: rotate(-135deg); }
.lg-toc a.is-active { background: rgba(0, 113, 227, .1); color: var(--blue); font-weight: 600; }
.lg-article { background: #fff; border-radius: 28px; padding: clamp(22px, 4.5vw, 52px); box-shadow: var(--shadow); min-width: 0; }
.lg-short { background: linear-gradient(180deg, #f2f8ff, #eaf3ff); border: 1px solid rgba(0, 113, 227, .16); border-radius: 20px; padding: 22px 24px; margin-bottom: 22px; }
.lg-short h2 { font-size: 1.15rem; margin: 0 0 10px; letter-spacing: -.01em; color: #0a4f9c; }
.lg-short ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 7px; color: #1d3a5f; line-height: 1.5; font-size: 1rem; }
.lg-note-lang { font-size: .85rem; color: var(--muted); background: var(--bg-alt); border-radius: 12px; padding: 10px 14px; margin: 0 0 8px; }
.lg-note-lang a { color: var(--blue); text-decoration: none; white-space: nowrap; }
.lg-sec { padding-top: 30px; scroll-margin-top: 76px; }
.lg-sec:first-of-type { padding-top: 22px; }
.lg-sec h2 { display: flex; gap: 12px; align-items: baseline; font-size: clamp(1.2rem, 2.8vw, 1.5rem); letter-spacing: -.02em; margin: 0 0 12px; line-height: 1.25; }
.lg-num { flex: none; min-width: 2em; height: 2em; display: inline-grid; place-items: center; border-radius: 999px; background: var(--bg-alt); color: var(--muted); font-size: .7em; font-weight: 700; align-self: center; padding: 0 .4em; }
.lg-article p, .lg-article li { color: #3a3a3c; font-size: 1.02rem; line-height: 1.62; }
.lg-article p { margin: 0 0 12px; }
.lg-article ul { margin: 0 0 14px; padding-inline-start: 1.3em; display: grid; gap: 7px; }
.lg-article ol { padding-inline-start: 1.3em; }
.lg-article a { color: var(--blue); text-decoration: none; overflow-wrap: anywhere; }
.lg-article a:hover { text-decoration: underline; }
.lg-article strong { color: var(--ink); }
.lg-callout { background: #fff8e6; border: 1px solid rgba(178, 91, 0, .25); border-radius: 16px; padding: 14px 18px; color: #6b3d00 !important; font-weight: 600; }
.lg-see { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px !important; }
.lg-article a.lg-chip { display: inline-flex; gap: 6px; align-items: center; background: var(--bg-alt); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 500; text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease); }
.lg-article a.lg-chip:hover { background: rgba(0, 113, 227, .12); color: var(--blue); text-decoration: none; }
.lg-related { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.lg-related h2 { font-size: 1.15rem; margin: 0 0 14px; }
.lg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.lg-article a.lg-card { display: flex; gap: 12px; align-items: center; background: var(--bg-alt); border-radius: 18px; padding: 12px 14px; color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.lg-article a.lg-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.lg-card-t { flex: 1; font-weight: 600; font-size: .92rem; line-height: 1.25; }
.lg-card-go { color: var(--muted); font-size: 1.3rem; }
.lg-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: inline-grid; place-items: center; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c)); box-shadow: 0 4px 10px color-mix(in srgb, var(--c) 35%, transparent); }
.lg-ic svg { width: 24px; height: 24px; }
/* hub */
.lg-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; max-width: 1120px; margin: 0 auto; padding: 8px 22px 28px; }
.lg-hub-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: 28px; padding: 28px 26px 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.lg-hub-card:hover, .lg-hub-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.lg-hub-card .lg-ic { width: 56px; height: 56px; border-radius: 15px; margin-bottom: 6px; }
.lg-hub-card .lg-ic svg { width: 34px; height: 34px; }
.lg-hub-card h2 { font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.lg-hub-card p { color: var(--muted); font-size: 1rem; line-height: 1.5; margin: 0; flex: 1; }
.lg-hub-go { color: var(--blue); font-weight: 600; font-size: .95rem; margin-top: 6px; }
.lg-hub-note { text-align: center; color: var(--muted); max-width: 40em; margin: 6px auto 0; padding: 0 22px; }
.lg-hub-note a { color: var(--blue); text-decoration: none; }
.lg-hubpage { padding-bottom: 80px; }
[dir="rtl"] .lg-card-go, [dir="rtl"] .lg-hub-go span[aria-hidden], [dir="rtl"] .lg-chip span[aria-hidden] { display: inline-block; transform: scaleX(-1); }
@media (max-width: 900px) {
  .lg-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 64px; }
  .lg-side { position: static; max-height: none; overflow: visible; }
  .lg-docs ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .lg-docs li a { background: var(--bg-alt); padding: 6px 12px; }
  .lg .lg-hero { padding: 44px 18px 28px; }
  .lg-article { border-radius: 22px; }
  .lg-sec h2 { gap: 10px; }
}
@media (max-width: 520px) { .lg-wrap { padding-inline: 12px; } .lg-short { padding: 18px; } .footer-legal-col { min-width: 100%; } }
@media (prefers-reduced-motion: reduce) { .lg-hub-card, .lg-card, .lg-chip { transition: none; } .lg-hub-card:hover { transform: none; } }
.footer .footer-legal { order: 3; flex: 1 1 100%; max-width: none; padding-top: 18px; border-top: 1px solid var(--line); }
.footer .footer-legal-col { order: 2; }
.footer .footer-col { order: 1; }
