/* =========================================================================
   legal.css — shared styling for the static info pages
   (Contact, Terms, Privacy, Refund). Reuses the app's tokens/aesthetic
   but is a normal scrollable document, not the fullscreen playground.
   ========================================================================= */

:root {
  --accent: #FFCC00;
  --ink: #ffffff;
  --bg-0: #14102b;
  --bg-1: #1a1140;
  --r-md: 20px;
  --r-sm: 14px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0; min-height: 100%;
  background:
    radial-gradient(120% 120% at 20% 10%, #3a1a5e 0%, transparent 55%),
    radial-gradient(120% 120% at 90% 90%, #10324f 0%, transparent 55%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-0) 100%) fixed;
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
               "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  line-height: 1.62;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(28px + var(--safe-t)) 22px calc(48px + var(--safe-b));
}

.topbar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 26px;
}
.topbar .logo { font-size: 30px; }
.topbar a.home {
  margin-left: auto; text-decoration: none; font-weight: 800; font-size: 14px;
  color: var(--accent); padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255,214,10,.4); background: rgba(255,214,10,.08);
  transition: background .16s ease, transform .16s ease;
}
.topbar a.home:hover { background: rgba(255,214,10,.2); transform: translateY(-1px); }

.card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  padding: 30px clamp(20px, 5vw, 40px);
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
}

h1 {
  font-size: clamp(28px, 6vw, 40px);
  margin: 0 0 6px;
  background: linear-gradient(92deg, #FF6B9D, #BF5AF2 55%, #30B0C7);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.updated { color: rgba(255,255,255,.5); font-size: 13px; margin: 0 0 22px; }

h2 {
  font-size: 19px; margin: 26px 0 8px; color: #fff;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
}
h2:first-of-type { border-top: none; padding-top: 0; }

p, li { color: rgba(255,255,255,.82); font-size: 15.5px; }
a { color: var(--accent); }
strong { color: #fff; }
ul { padding-left: 20px; }
li { margin: 6px 0; }

.note {
  margin-top: 14px; padding: 14px 16px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm); font-size: 14px; color: rgba(255,255,255,.7);
}

.contact-email {
  display: inline-block; margin-top: 6px; font-weight: 800; font-size: 17px;
  color: var(--accent);
}

footer {
  margin-top: 30px; text-align: center;
  font-size: 12.5px; color: rgba(255,255,255,.45);
}
footer a { color: rgba(255,255,255,.6); text-decoration: none; margin: 0 8px; }
footer a:hover { color: var(--accent); }
