/* ============================================================
   Arrow Maze Quest — legal pages (Privacy Policy / Account Deletion)
   Shares the orange / dark brand system with css/style.css
   ============================================================ */

:root {
  --bg: #0B0704;
  --bg-2: #150C05;
  --surface: #1B1008;
  --surface-2: #241509;
  --orange: #FF7A00;
  --orange-lt: #FFB300;
  --orange-dk: #FF3D00;
  --grad: linear-gradient(90deg, #FF3D00 0%, #FF7A00 48%, #FFC300 100%);
  --grad-v: linear-gradient(180deg, #FFC300 0%, #FF7A00 55%, #FF3D00 100%);
  --ink: #FFF4E8;
  --ink-soft: #E4D3C0;
  --muted: #B0967C;
  --line: rgba(255, 122, 0, .18);
  --line-soft: rgba(255, 255, 255, .07);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(255, 61, 0, .2), transparent 62%),
    radial-gradient(700px 460px at 8% 12%, rgba(255, 195, 0, .08), transparent 60%),
    var(--bg);
  color: var(--ink);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, .brand-text, .tag, .clause-number, .legal-nav a {
  font-family: "Chakra Petch", "Inter", Arial, sans-serif;
}

a { color: var(--orange-lt); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(900px, 91%); margin-inline: auto; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 7, 4, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 6px 16px rgba(255, 122, 0, .45)); }
.brand-text {
  display: flex; flex-direction: column; line-height: 1; color: #fff;
  font-size: .95rem; font-weight: 700; letter-spacing: .08em;
}
.brand-sub { font-size: .53rem; letter-spacing: .30em; color: var(--orange); margin-top: 5px; font-weight: 600; }
.header-links { display: flex; align-items: center; gap: 22px; font-size: .88rem; font-weight: 600; }
.header-links a { color: var(--ink-soft); }
.header-links a:hover { color: #fff; text-decoration: none; }
.header-links a.is-active { color: var(--orange); }

/* ---------------- page shell ---------------- */
main { flex: 1; padding: 52px 0 76px; }

.card {
  position: relative;
  background: linear-gradient(160deg, var(--surface), #140B05 72%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 4.2vw, 52px);
  box-shadow: 0 44px 96px -60px rgba(255, 122, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .04);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad); opacity: .9;
}

/* ---------------- headings ---------------- */
.eyebrow { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px;
  color: var(--orange-lt);
  background: rgba(255, 122, 0, .1);
  border: 1px solid var(--line);
}

h1 {
  font-size: clamp(1.55rem, 3.6vw, 2.25rem);
  line-height: 1.1; font-weight: 700; letter-spacing: -.01em;
  text-transform: uppercase;
}
h1 .grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.page-head { padding-bottom: 26px; border-bottom: 1px solid var(--line-soft); margin-bottom: 34px; }
.page-sub { color: var(--muted); font-size: .95rem; margin-top: 12px; }

h2 {
  font-size: 1.08rem; font-weight: 700; letter-spacing: .02em;
  color: var(--orange-lt);
  display: flex; align-items: center; gap: 12px;
  margin: 38px 0 14px;
}
h2::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: var(--grad-v); flex: none;
}
h2:first-of-type { margin-top: 0; }

p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 14px; }
p strong { color: #fff; }

section { margin-bottom: 6px; }

/* ---------------- partner tiles ---------------- */
.partners-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 10px; margin: 18px 0 6px;
}
.partners-grid a {
  display: block; text-align: center; padding: 12px 10px;
  background: rgba(255, 122, 0, .06);
  border: 1px solid var(--line-soft); border-radius: 11px;
  color: var(--ink-soft); font-size: .87rem; font-weight: 600;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.partners-grid a:hover {
  text-decoration: none; color: #fff;
  border-color: rgba(255, 122, 0, .55);
  background: rgba(255, 122, 0, .13);
  transform: translateY(-2px);
}

/* ---------------- contact block ---------------- */
.contact-box {
  margin-top: 16px; padding: 20px 22px;
  background: rgba(255, 122, 0, .06);
  border: 1px solid var(--line); border-radius: 14px;
}
.contact-box p { margin-bottom: 6px; }
.contact-box p:last-child { margin-bottom: 0; }
.contact-box .mail { color: var(--orange-lt); font-weight: 600; }

/* ---------------- warning ---------------- */
.warning-box {
  margin: 26px 0;
  padding: 18px 20px;
  background: rgba(255, 122, 0, .09);
  border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0;
}
.warning-box p { margin: 0; color: #FFC98A; font-weight: 500; }

/* ---------------- clause list ---------------- */
.clause-list { list-style: none; margin-top: 26px; }
.clause-item {
  position: relative;
  padding: 20px 22px 20px 64px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, .022);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  transition: border-color .22s, background .22s;
}
.clause-item:hover { border-color: rgba(255, 122, 0, .38); background: rgba(255, 122, 0, .05); }
.clause-number {
  position: absolute; left: 20px; top: 20px;
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--grad); color: #1A0C02;
  font-size: .85rem; font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(255, 122, 0, .9);
}
.clause-item p { font-size: .94rem; margin-bottom: 10px; }
.clause-item p:last-child { margin-bottom: 0; }

.sub-list { list-style: none; margin: 10px 0 12px; padding: 0; }
.sub-list li {
  position: relative; padding-left: 18px; margin-bottom: 8px;
  color: var(--muted); font-size: .91rem;
}
.sub-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--orange); opacity: .8;
  transform: rotate(45deg);
}

.intro-text { color: var(--ink-soft); }

/* ---------------- footer ---------------- */
.legal-footer {
  border-top: 1px solid var(--line);
  background: #060302;
  padding: 26px 0 34px;
  font-size: .82rem; color: #7A6753;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 26px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--orange-lt); text-decoration: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 640px) {
  main { padding: 34px 0 54px; }
  .brand-text { font-size: .84rem; letter-spacing: .05em; }
  .brand-sub { font-size: .5rem; letter-spacing: .24em; }
  .header-links { gap: 14px; font-size: .8rem; }
  .header-links a.hide-sm { display: none; }
  .clause-item { padding: 18px 18px 18px 58px; }
  .clause-number { left: 16px; top: 18px; width: 28px; height: 28px; }
  .partners-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
