/* Privacy, Terms and Data deletion pages: the homepage's look (dark, green glow), built for reading.
   One language at a time once legal.js runs (html[data-lang]); without it both show, English first. */
:root {
  --bg: #07080A; --ink: #EEF1EF; --body: #C9D0CC; --mut: #9EA6A2; --line: rgba(255,255,255,.09);
  --card: rgba(255,255,255,.035); --card2: rgba(255,255,255,.06); --g: #3CC3A2; --g2: #7BE3C6; --deep: #0C7A64;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--body); background: var(--bg); font: 400 17px/1.7 'Rubik', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--g2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
strong, b { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--g2); outline-offset: 3px; border-radius: 4px; }
.lg-wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* one language at a time */
html[data-lang="en"] .he, html[data-lang="he"] .en { display: none !important; }
[lang="he"] { direction: rtl; }

/* top bar (same as the homepage) */
.lg-nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7,8,10,.7); border-bottom: 1px solid var(--line); }
.lg-nav .lg-wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.lg-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 24px 'Secular One', 'Rubik', sans-serif; }
.lg-brand:hover { color: var(--ink); }
.lg-brand svg { width: 34px; height: 34px; }
.lg-space { flex: 1; }
.lg-links { display: flex; gap: 4px; }
.lg-links a { color: var(--mut); text-decoration: none; font-weight: 500; font-size: 15px; padding: 7px 12px; border-radius: 999px; }
.lg-links a:hover { color: var(--ink); background: var(--card2); }
.lg-links a[aria-current="page"] { color: var(--g2); background: rgba(60,195,162,.12); }
.lg-lang { display: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
html[data-lang] .lg-lang { display: flex; }
.lg-lang button { all: unset; cursor: pointer; padding: 5px 12px; border-radius: 999px; font: 500 14px 'Rubik', sans-serif; color: var(--mut); }
.lg-lang button:focus-visible { outline: 2px solid var(--g2); }
html[data-lang="en"] .lg-lang [data-set="en"], html[data-lang="he"] .lg-lang [data-set="he"] { background: rgba(60,195,162,.16); color: var(--g2); }
.lg-btn { display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px; font: 600 15px 'Rubik', sans-serif; text-decoration: none;
  background: linear-gradient(135deg, #46D3B0, #0FA383); color: #04211A; box-shadow: 0 8px 30px -10px rgba(60,195,162,.7), inset 0 1px 0 rgba(255,255,255,.35); }
.lg-btn:hover { color: #04211A; transform: translateY(-1px); }

/* top of the page */
.lg-hero { position: relative; padding: 64px 0 36px; overflow: hidden; }
.lg-glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lg-glow i { position: absolute; border-radius: 50%; filter: blur(90px); }
.lg-glow .a { width: 560px; height: 560px; background: var(--deep); top: -300px; inset-inline-start: -180px; opacity: .5; }
.lg-glow .b { width: 460px; height: 460px; background: #1B4D8F; top: -240px; inset-inline-end: -200px; opacity: .3; }
.lg-hero .lg-wrap { position: relative; }
.lg-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px; border: 1px solid rgba(60,195,162,.35);
  border-radius: 999px; background: rgba(60,195,162,.08); color: var(--g2); font-size: 14px; font-weight: 500; }
.lg-pill b { width: 7px; height: 7px; border-radius: 50%; background: var(--g); box-shadow: 0 0 10px var(--g); }
.lg-hero h1 { margin: 0; color: var(--ink); font: 400 clamp(38px, 6vw, 60px)/1.08 'Secular One', 'Rubik', sans-serif; letter-spacing: -.01em; }
.lg-meta { margin: 14px 0 0; color: var(--mut); font-size: 15px; }
.lg-sum { margin: 28px 0 0; max-width: 760px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(135deg, rgba(60,195,162,.10), rgba(255,255,255,.02)); color: var(--ink); font-size: 17.5px; }

/* contents + text */
.lg-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 12px 0 80px; }
.lg-toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.lg-toc p { margin: 0 0 10px; color: var(--mut); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
[lang="he"] .lg-toc p { letter-spacing: 0; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; border-inline-start: 1px solid var(--line); }
.lg-toc li { counter-increment: t; }
.lg-toc a { display: flex; gap: 10px; padding: 6px 14px; margin-inline-start: -1px; border-inline-start: 2px solid transparent;
  color: var(--mut); text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.lg-toc a::before { content: counter(t, decimal-leading-zero); color: rgba(255,255,255,.28); font-variant-numeric: tabular-nums; font-size: 12.5px; padding-top: 2px; }
.lg-toc a:hover { color: var(--ink); }
.lg-toc a.on { color: var(--g2); border-inline-start-color: var(--g); }
.lg-toc details > summary { display: none; }

article { min-width: 0; counter-reset: s; }
.lg-sec { padding: 30px 0; border-top: 1px solid var(--line); }
.lg-sec:first-child { border-top: 0; padding-top: 6px; }
.lg-sec h2 { counter-increment: s; display: flex; align-items: baseline; gap: 14px; margin: 0 0 12px; color: var(--ink);
  font: 400 26px/1.25 'Secular One', 'Rubik', sans-serif; }
.lg-sec h2::before { content: counter(s, decimal-leading-zero); color: var(--g); font: 500 14px 'Rubik', sans-serif; font-variant-numeric: tabular-nums; }
.lg-sec p, .lg-sec li { max-width: 70ch; }
.lg-sec p { margin: 0 0 12px; }
.lg-sec ul { margin: 0 0 12px; padding: 0; list-style: none; }
.lg-sec li { position: relative; padding-inline-start: 22px; margin: 0 0 9px; }
.lg-sec li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--g); opacity: .8; }
.lg-sec li:target, .lg-sec h2:target { animation: lg-hi 2.4s ease; }
@keyframes lg-hi { 0%, 40% { background: rgba(60,195,162,.14); } 100% { background: transparent; } }
.lg-box { padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }

/* tables: a card per row */
.lg-table { margin: 6px 0 14px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.lg-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.6; }
.lg-table th { padding: 12px 18px; text-align: start; color: var(--mut); font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); }
[lang="he"] .lg-table th { letter-spacing: 0; }
.lg-table td { padding: 14px 18px; vertical-align: top; border-bottom: 1px solid var(--line); }
.lg-table tr:last-child td { border-bottom: 0; }
.lg-table td:first-child { width: 46%; color: var(--ink); }
.lg-table tr:hover td { background: rgba(255,255,255,.015); }

/* bottom */
.lg-foot { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--mut); font-size: 14.5px; }
.lg-foot .lg-wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.lg-foot p { margin: 0; }
.lg-foot nav { display: flex; gap: 18px; }
.lg-foot a { color: var(--mut); text-decoration: none; }
.lg-foot a:hover { color: var(--ink); }
.lg-top { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 15; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(20,22,24,.85); color: var(--ink); text-decoration: none; font-size: 18px;
  opacity: 0; pointer-events: none; transition: opacity .2s; backdrop-filter: blur(10px); }
html.lg-down .lg-top { opacity: 1; pointer-events: auto; }

/* the data deletion page's result */
.lg-status { margin: 26px 0 0; max-width: 760px; padding: 20px 24px; border-radius: 16px; border: 1px solid rgba(60,195,162,.35);
  background: rgba(60,195,162,.08); color: var(--ink); font-size: 18px; }

/* without legal.js: both languages, Hebrew after a line */
html:not([data-lang]) .lg-lang-block.he { border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .lg-body { grid-template-columns: 1fr; gap: 8px; }
  .lg-toc { position: static; max-height: none; overflow: visible; margin-bottom: 8px; }
  .lg-toc details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
  .lg-toc details > summary { display: flex; justify-content: space-between; cursor: pointer; list-style: none; padding: 13px 18px; color: var(--ink); font-weight: 500; }
  .lg-toc details > summary::-webkit-details-marker { display: none; }
  .lg-toc details > summary::after { content: "+"; color: var(--g); font-size: 20px; line-height: 1; }
  .lg-toc details[open] > summary::after { content: "–"; }
  .lg-toc details > p { display: none; }
  .lg-toc details ol { border: 0; padding: 0 6px 10px; }
  .lg-toc a { border: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .lg-wrap { width: calc(100% - 32px); }
  .lg-nav .lg-wrap { gap: 8px; height: 60px; }
  .lg-brand span { display: none; }
  .lg-links a { padding: 6px 9px; font-size: 14px; }
  .lg-btn { display: none; }
  .lg-hero { padding: 40px 0 24px; }
  .lg-sec h2 { font-size: 22px; }
  .lg-table table, .lg-table tbody, .lg-table tr, .lg-table td { display: block; width: 100% !important; }
  .lg-table tr:first-child:has(th) { display: none; }
  .lg-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .lg-table tr:last-child { border-bottom: 0; }
  .lg-table td { padding: 0; border: 0; }
  .lg-table td + td { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
  .lg-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--g); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
  [lang="he"] .lg-table td[data-label]::before { letter-spacing: 0; }
}
@media print {
  :root { --bg: #fff; --ink: #000; --body: #111; --mut: #444; --line: #ccc; --card: #fff; }
  .lg-nav, .lg-toc, .lg-top, .lg-glow, .lg-foot nav { display: none !important; }
  .lg-body { display: block; }
  html[data-lang] .en, html[data-lang] .he { display: block !important; }
}
