/* =========================================================
   Design Port: legal pages (Privacy Policy, Terms of Service)
   Builds on styles.css
   ========================================================= */

.legal-page { cursor: auto; }

/* reading progress */
.lprogress { position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: 3px; pointer-events: none; }
.lprogress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- hero ---------- */
.lhero { position: relative; padding: clamp(120px, 16vh, 168px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.lhero::after {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -40px;
  width: min(520px, 60vw);
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%230D1B2A' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M28 6 V40 L35 33 L40 44 L44 42 L39 31 L49 31 Z'/%3E%3Cpath d='M11 48 H55 L48.5 56 H17.5 Z'/%3E%3Cpath d='M7 61 q6.5 -4 13 0 t13 0 t13 0 t13 0' stroke='%23F2501A'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: .07;
  pointer-events: none;
}
.lback { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 36px; font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .3s, gap .4s var(--ease); }
.lback svg { width: 14px; height: 14px; }
.lback:hover { gap: 12px; color: var(--ink); }
.lhero .eyebrow { display: flex; margin-bottom: 20px; }
.lhero h1 { font-family: var(--serif); font-size: clamp(3.4rem, 9vw, 8rem); line-height: .92; letter-spacing: -.025em; }
.lhero h1 em { color: var(--accent); }

.lmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lmeta > span { display: inline-flex; align-items: center; gap: 10px; }
.lswitch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .5); }
.lswitch a { padding: .55em 1.1em; border-radius: 999px; color: var(--ink-2); transition: background .3s, color .3s; }
.lswitch a:hover { color: var(--ink); }
.lswitch a[aria-current="page"] { background: var(--ink); color: #fff; }

.lshort { position: relative; max-width: 880px; margin-top: clamp(36px, 5vw, 56px); padding: clamp(24px, 3vw, 36px) clamp(24px, 3.4vw, 44px); overflow: hidden; border-radius: 22px; background: var(--ink); color: #fff; }
.lshort__wave { position: absolute; left: 0; right: 0; bottom: 10px; width: 100%; height: 26px; color: var(--accent); opacity: .5; }
.lshort__label { margin: 0 0 10px; font: 500 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.lshort__text { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.25; }

/* ---------- body: contents + article ---------- */
.lbody { display: grid; gap: 32px; padding-bottom: clamp(80px, 10vw, 140px); }
@media (min-width: 980px) { .lbody { grid-template-columns: 270px 1fr; gap: clamp(48px, 6vw, 96px); align-items: start; } }

.ltoc { position: relative; }
@media (min-width: 980px) { .ltoc { position: sticky; top: 100px; } }
.ltoc details { border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.ltoc summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: pointer; list-style: none; }
.ltoc summary::-webkit-details-marker { display: none; }
.ltoc summary::after { content: "+"; font-size: 1.1rem; color: var(--ink); transition: transform .3s var(--ease); }
.ltoc details[open] summary::after { transform: rotate(45deg); }
.ltoc ol { position: relative; margin: 0; padding: 0 10px 12px; list-style: none; max-height: min(64vh, 560px); overflow-y: auto; }
.ltoc a { display: flex; gap: 12px; padding: 8px 10px; border-radius: 10px; font-size: .9rem; line-height: 1.35; color: var(--ink-2); transition: background .25s, color .25s; }
.ltoc a span { flex: none; padding-top: 2px; font: 500 .68rem var(--mono); color: var(--muted); }
.ltoc a:hover { background: var(--paper); color: var(--ink); }
.ltoc a.is-active { background: var(--paper); color: var(--ink); font-weight: 600; }
.ltoc a.is-active span { color: var(--accent-ink); }

.ltext { max-width: 760px; }
.lsec { padding: 0 0 clamp(36px, 4vw, 52px); scroll-margin-top: 100px; }
.lsec + .lsec { padding-top: clamp(36px, 4vw, 52px); border-top: 1px solid var(--line); }
.lsec h2 { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.05; }
.lnum { flex: none; display: inline-grid; place-items: center; min-width: 2.7em; height: 2.1em; padding: 0 .6em; border: 1px solid var(--accent); border-radius: 999px; font: 500 .72rem var(--mono); letter-spacing: .04em; color: var(--accent-ink); transform: translateY(-.45em); }
.lsec h3 { margin: 26px 0 8px; font: 700 1rem var(--sans); color: var(--ink); }
.lsec p, .lsec li { font-size: 1.04rem; line-height: 1.7; color: var(--ink-2); }
.lsec p { margin: 0 0 14px; }
.lsec b { color: var(--ink); font-weight: 700; }
.lsec a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lsec ul { display: grid; gap: 10px; margin: 6px 0 16px; padding: 0; list-style: none; }
.lsec li { position: relative; padding-left: 30px; }
.lsec li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 2px;
  width: 16px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'%3E%3Cpath d='M1 4 q3.5 -3 7 0 t7 0' fill='none' stroke='%23F2501A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.lcontact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 12px; padding: clamp(26px, 3.4vw, 40px); border-radius: 22px; background: var(--ink); color: #fff; }
.lcontact__label { margin: 0 0 8px; font: 500 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.lcontact h3 { max-width: 22rem; font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.1; }
.lcontact h3 em { color: var(--brass); }
.lcontact .btn { word-break: break-all; }

.lnext { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); transition: border-color .3s, transform .5s var(--ease); }
.lnext small { font: 500 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lnext span { flex: 1; font-family: var(--serif); font-size: 1.8rem; line-height: 1; }
.lnext svg { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.lnext:hover { border-color: var(--ink); }
.lnext:hover svg { transform: translateX(4px); }

/* ---------- footer ---------- */
.lfoot { padding: 40px 0 28px; background: var(--ink); color: #fff; }
.lfoot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.lfoot .nav__logo em { color: var(--accent); }
.lfoot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .92rem; }
.lfoot nav a { color: rgba(238, 242, 245, .75); transition: color .3s; }
.lfoot nav a:hover { color: #fff; }
.lfoot__small { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(238, 242, 245, .12); font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(238, 242, 245, .5); }
.lfoot__small a:hover { color: #fff; }

/* print-friendly */
@media print {
  .nav, .menu, .lprogress, .ltoc, .lfoot, .lnext, .lback, .lswitch { display: none !important; }
  body::after, .lhero::after { display: none; }
  .lhero { padding-top: 0; }
  .lshort, .lcontact { background: none; color: var(--ink); border: 1px solid var(--line); }
  .lbody { display: block; }
}
