/* Xplrearth subpages (privacy, terms, account deletion, profile links): same night-atlas
   look as the home page. Class names are unchanged so the page scripts keep working. */
@import url('assets/fonts/fonts.css');
:root {
  --bg: #05101e;
  --bg-2: #081a30;
  --card: rgba(8, 26, 48, .72);
  --text: #e0f2f1;
  --muted: #9fb3c8;
  --faint: #7189a3;
  --accent: #4c8df6;
  --accent-strong: #7fb0ff;
  --amber: #f5a524;
  --danger: #ef5b5f;
  --line: rgba(224, 242, 241, .12);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.7 'Poppins', system-ui, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

header.top { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(900px 420px at 85% -20%, rgba(76, 141, 246, .28), transparent 65%), radial-gradient(500px 300px at 10% 120%, rgba(245, 165, 36, .08), transparent 70%), var(--bg); }
/* A faint dotted globe edge in the corner, echoing the home page. */
header.top::after { content: ''; position: absolute; right: -160px; top: -220px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(76, 141, 246, .55) 1.2px, transparent 1.6px) 0 0 / 14px 14px; -webkit-mask: radial-gradient(circle, #000 55%, transparent 71%); mask: radial-gradient(circle, #000 55%, transparent 71%); opacity: .35; pointer-events: none; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
nav.bar { display: flex; align-items: center; gap: 18px; padding: 20px 0; }
nav.bar .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 18px; }
nav.bar .brand img { width: 30px; height: 30px; }
nav.bar .links { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
nav.bar .links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
nav.bar .links a:hover { color: var(--text); }
.hero { padding: 56px 0 72px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; font-weight: 600; letter-spacing: -.01em; margin: 0 0 16px; }
.hero p { color: var(--muted); font-size: 18px; margin: 0; max-width: 560px; }
.page-title { padding: 40px 0 52px; }
.page-title h1 { margin: 0; font-size: clamp(32px, 5vw, 46px); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; animation: rise .8s var(--ease) both; }
.page-title p { margin: 8px 0 0; color: var(--muted); font-family: 'Fira Mono', ui-monospace, monospace; font-size: 13px; letter-spacing: .05em; animation: rise .8s .1s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

main { padding: 44px 0 72px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.grid .card h3 { margin: 0 0 6px; font-size: 18px; }
.grid .card p { margin: 0; color: var(--muted); font-size: 15px; }
h2 { font-size: 24px; font-weight: 600; margin: 48px 0 12px; letter-spacing: -.005em; scroll-margin-top: 20px; }
h2::before { content: ''; display: inline-block; width: 8px; height: 8px; margin: 0 12px 4px 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(76, 141, 246, .18); }
h3 { font-size: 18px; font-weight: 600; margin: 26px 0 6px; }
p, li { color: #c9d8e6; }
li { margin: 4px 0; }
strong { color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--faint); }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 4px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
tr:hover td { background: rgba(224, 242, 241, .025); }
.summary { background: rgba(76, 141, 246, .1); border: 1px solid rgba(76, 141, 246, .3); border-radius: 16px; padding: 18px 22px; }
.summary p { margin: 6px 0; }

footer { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--faint); font-size: 14px; }
footer a { color: var(--muted); margin-right: 16px; text-decoration: none; }
footer a:hover { color: var(--text); }

/* forms (account deletion) */
label { display: block; font-weight: 600; margin: 16px 0 6px; color: var(--text); }
input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8, 26, 48, .9); color: var(--text); transition: border-color .2s, box-shadow .2s; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(76, 141, 246, .2); }
button { font: inherit; font-size: 15px; font-weight: 600; border: 0; border-radius: 999px; padding: 13px 24px; cursor: pointer; margin-top: 18px; transition: transform .2s var(--ease), box-shadow .2s, opacity .2s; }
button:active { transform: scale(.98); }
button.primary { background: var(--accent); color: #fff; box-shadow: 0 8px 26px rgba(76, 141, 246, .35); }
button.danger { background: var(--danger); color: #fff; }
button.ghost { background: transparent; color: var(--muted); }
button:disabled { opacity: .5; cursor: default; }
.msg { margin-top: 14px; padding: 12px 14px; border-radius: 12px; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(239, 91, 95, .12); color: #ffb4b6; border: 1px solid rgba(239, 91, 95, .3); }
.msg.ok { background: rgba(34, 197, 94, .1); color: #9be7b5; border: 1px solid rgba(34, 197, 94, .3); }
.step { display: none; }
.step.show { display: block; animation: rise .5s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* language picker (assets/i18n.js) */
nav.bar .lang-slot { display: flex; align-items: center; }
/* translated legal pages: the English original is the binding text */
.legal-note { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 28px; padding: 16px 20px; border-radius: 16px; background: rgba(245, 165, 36, .1); border: 1px solid rgba(245, 165, 36, .4); }
.legal-note svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--amber); }
.legal-note p { margin: 0; color: var(--text); font-size: 15px; }
.legal-note a { color: #ffd08a; font-weight: 600; }
@media (max-width: 600px) {
  nav.bar { flex-wrap: wrap; row-gap: 12px; }
  nav.bar .links { margin-left: 0; width: 100%; gap: 8px 18px; align-items: center; }
  nav.bar { position: relative; }
  nav.bar .lang-slot { position: absolute; right: 0; top: 16px; }
}
