/* ============================================================
   TRYKER · Legal section — premium glass + glow theme
   Matches the tryker.in homepage aesthetic: radial gradient
   glows, glassmorphism cards, layered soft shadows, gradient
   accents and subtle entrance motion.
   Reuses base.css tokens; adds a self-contained fallback set so
   legal pages render even if base.css is missing.
   ============================================================ */
:root {
  --purple: #6A0DAD;
  --purple-deep: #4D0A82;
  --purple-soft: #7B1FBE;
  --pink: #FF69B4;
  --pink-soft: #FFB0DA;
  --ink: #1B1622;
  --muted: #6B6478;
  --bg-soft: #FAF7FD;
  --line: #EFE7F6;
  --radius: 16px;
  --radius-lg: 24px;
  /* layered shadows (fallbacks; base.css supplies the canonical set) */
  --shadow-soft: 0 1px 2px rgba(106, 13, 173, .04), 0 8px 24px rgba(106, 13, 173, .06);
  --shadow-pop: 0 4px 8px rgba(106, 13, 173, .06), 0 16px 40px rgba(106, 13, 173, .10);
  --shadow-lg: 0 18px 50px rgba(106, 13, 173, .22);
  --brand-gradient: linear-gradient(135deg, #6A0DAD 0%, #FF4FA2 100%);
  --glass: rgba(255, 255, 255, .72);
  --glass-soft: rgba(255, 255, 255, .6);
  --glass-border: rgba(255, 255, 255, .7);
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
}
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.legal-body {
  position: relative;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #F4F2F8;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
/* A single faint brand wash at the very top — keeps it calm + serious */
.legal-body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 280px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% -20%, rgba(106, 13, 173, .08), transparent 60%);
}

/* ── Top bar (frosted glass) ───────────────────────────────── */
.legal-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 7px 16px;
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(106, 13, 173, .04), 0 6px 22px rgba(106, 13, 173, .05);
  position: sticky; top: 0; z-index: 20;
}
/* Text wordmark — always visible (the PNG logo is white-on-transparent) */
.legal-logo {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(22px, 5vw, 26px); line-height: 1; letter-spacing: -.01em;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.legal-logo span {
  font-size: .46em; font-weight: 700; margin-left: 1px;
  color: var(--pink); -webkit-text-fill-color: var(--pink);
}
.legal-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--purple);
  padding: 6px 13px; border: 1px solid var(--glass-border); border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.legal-back:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-pop);
  border-color: var(--pink-soft);
  color: var(--purple-deep);
}
.legal-back svg { transition: transform .2s ease; }
.legal-back:hover svg { transform: translateX(-2px); }

/* ── Main + hero ───────────────────────────────────────────── */
.legal-main { max-width: 820px; margin: 0 auto; padding: 30px 16px 52px; }
.legal-hero {
  text-align: center; margin: 10px 0 24px;
  animation: legalRise .6s cubic-bezier(.16, 1, .3, 1) both;
}
.legal-hero h1 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(26px, 6.2vw, 40px); line-height: 1.1; margin: 0; padding: 0 8px;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.legal-hero .legal-updated { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.legal-accent {
  width: 54px; height: 3px; border-radius: 999px;
  background: var(--brand-gradient);
  box-shadow: 0 3px 12px rgba(255, 79, 162, .3);
  margin: 15px auto 0;
}

/* ── Content card (glassmorphism) ──────────────────────────── */
.legal-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #ECE6F3;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(24, 16, 43, .04), 0 14px 38px rgba(24, 16, 43, .07);
  padding: clamp(22px, 5vw, 40px);
  animation: legalRise .7s cubic-bezier(.16, 1, .3, 1) .12s both;
}
/* Lead paragraph — slightly muted, set apart from section 1 by a hairline */
.legal-card > .legal-intro {
  font-size: 15.5px; line-height: 1.7; color: #57515F;
  margin: 0 0 2px; padding-bottom: 22px; border-bottom: 1px solid #EFEAF5;
}
/* Section headings — crisp dark sans, separated by a hairline divider */
.legal-card h2 {
  font-family: var(--font-sans); font-weight: 700; font-size: 17px;
  color: #16121E; letter-spacing: -.01em;
  margin: 28px 0 9px; padding-top: 26px; border-top: 1px solid #EFEAF5;
}
.legal-card h2:first-of-type { margin-top: 20px; padding-top: 0; border-top: 0; }
.legal-card h3 { font-size: 15px; font-weight: 700; color: #16121E; margin: 18px 0 6px; }
.legal-card p { margin: 0 0 12px; color: #34303C; font-size: 15px; line-height: 1.7; }
.legal-card p:last-child { margin-bottom: 0; }
/* Minimal list markers */
.legal-card ul { list-style: none; margin: 4px 0 14px; padding-left: 2px; }
.legal-card li { position: relative; padding-left: 18px; margin: 0 0 7px; color: #34303C; font-size: 15px; line-height: 1.6; }
.legal-card li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--purple);
}
.legal-card a {
  color: var(--purple); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255, 176, 218, .7);
  transition: color .2s ease, text-decoration-color .2s ease;
}
.legal-card a:hover { color: var(--purple-deep); text-decoration-color: var(--purple); }

/* ── Contact / support extras ──────────────────────────────── */
.legal-info-grid { display: grid; gap: 12px; margin: 0 0 24px; }
.legal-info-row {
  position: relative;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 15px 16px 15px 22px;
  background: var(--glass-soft);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
/* gradient accent bar on the left of each info row */
.legal-info-row::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px;
  border-radius: 999px; background: var(--brand-gradient);
}
.legal-info-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.legal-info-row strong { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; letter-spacing: .02em; }
.legal-info-row span { font-size: 15px; color: var(--ink); font-weight: 600; }

.legal-form { display: grid; gap: 14px; margin-top: 8px; }
.legal-field { display: grid; gap: 6px; }
.legal-field span { font-size: 13px; font-weight: 700; color: var(--muted); }
.legal-field input, .legal-field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid rgba(106, 13, 173, .14); border-radius: 12px;
  background: rgba(255, 255, 255, .75); width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.legal-field textarea { min-height: 110px; resize: vertical; }
.legal-field input:focus, .legal-field textarea:focus {
  outline: none; border-color: var(--purple); background: #fff;
  box-shadow: 0 0 0 3px rgba(106, 13, 173, .12);
}
.legal-submit {
  justify-self: start; font-weight: 800; color: #fff; background: var(--brand-gradient);
  border: none; border-radius: 999px; padding: 13px 30px; font-size: 15px; cursor: pointer;
  box-shadow: 0 10px 26px rgba(255, 79, 162, .34);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.legal-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 79, 162, .42); filter: saturate(1.08); }
.legal-submit:active { transform: translateY(0); }
.legal-form-note { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

/* Support quick-help chips + FAQ */
.legal-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.legal-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .66);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--purple); box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.legal-chip:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-pop);
  border-color: var(--pink-soft); color: var(--purple-deep);
}
.legal-faq {
  background: var(--glass-soft);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .25s ease;
}
.legal-faq + .legal-faq { margin-top: 10px; }
.legal-faq[open] { box-shadow: var(--shadow-pop); }
.legal-faq summary {
  cursor: pointer; list-style: none; padding: 15px 18px; font-weight: 700; color: var(--purple-deep);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.legal-faq summary::-webkit-details-marker { display: none; }
.legal-faq summary::after {
  content: '+'; font-size: 22px; line-height: 1; color: var(--pink);
  transition: transform .25s ease;
}
.legal-faq[open] summary::after { transform: rotate(45deg); }
.legal-faq p { margin: 0; padding: 0 18px 16px; color: var(--ink); }
.legal-faq[open] p { animation: legalFade .35s ease both; }

/* ── Shared footer (deep purple + glow) ────────────────────── */
.legal-foot {
  position: relative; overflow: hidden;
  color: #fff; padding: 22px 16px 18px; margin-top: 30px;
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 104, 188, .30), transparent 42%),
    radial-gradient(circle at 8% 12%, rgba(255, 255, 255, .10), transparent 30%),
    linear-gradient(135deg, #4d0a82 0%, #6a0dad 58%, #8d2bd7 100%);
}
/* glowing hairline along the top of the footer */
.legal-foot::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 175, 218, .8), transparent);
}
.legal-foot-inner { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.legal-foot-title { font-family: var(--font-serif); font-size: 16px; margin: 0 0 11px; color: #fff; }
.legal-foot-links {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5px 8px; margin: 0 auto 12px; max-width: 430px;
}
.legal-foot-links a {
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .86);
  padding: 6px 6px; border-radius: 10px; text-align: center;
  transition: color .2s ease, background .2s ease;
}
.legal-foot-links a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.legal-foot-contact { margin: 4px 0 0; font-size: 14px; }
.legal-foot-contact a { color: #fff; font-weight: 700; }
.legal-foot-copy { font-size: 11.5px; color: rgba(255, 255, 255, .62); margin: 8px 0 0; }
.bottom-nav-spacer { height: 76px; }

/* ── Motion ────────────────────────────────────────────────── */
@keyframes legalRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes legalFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .legal-hero, .legal-card, .legal-faq[open] p { animation: none; }
  .legal-back, .legal-info-row, .legal-chip, .legal-submit { transition: none; }
}

@media (min-width: 768px) {
  .bottom-nav-spacer { height: 0; }
  .legal-foot-links {
    display: flex; flex-wrap: wrap; justify-content: center;
    max-width: none; gap: 2px 6px;
  }
}
