/* === DIECAST HUB — page.css — Shared styles for inner pages === */
/* Legal, contest, explore etc. — inherits design tokens from styles.css */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&family=Inter:wght@300..700&display=swap");

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── DESIGN TOKENS (matches styles.css) ── */
:root {
  --bg: #131318;
  --bg2: #111118;
  --bg3: #1f1f25;
  --bg4: #2a292f;
  --accent: #ff6b00;
  --accent2: #ffb693;
  --teal: #a2e7ff;
  --text: #e4e1e9;
  --muted: #8888a0;
  --border: rgba(90, 65, 54, 0.42);
  --radius: 20px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 64px;
  background: rgba(17, 17, 24, 0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
}
.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-logo-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-back:hover {
  color: var(--text);
}

/* ── PAGE LAYOUT ── */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 5vw 80px;
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 8px;
  color: var(--text);
}

h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent2);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 8px;
}

p {
  font-size: 0.95rem;
  color: #c8c4d0;
  margin-bottom: 14px;
}

ul,
ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

li {
  font-size: 0.95rem;
  color: #c8c4d0;
  margin-bottom: 6px;
}

strong {
  color: var(--text);
}

a {
  color: var(--accent2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── PAGE TAG (LEGAL / GUIDE etc.) ── */
.page-tag {
  display: inline-block;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
  font-family: "Space Grotesk", sans-serif;
}

.updated {
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 48px;
}

/* ── CONTACT / INFO BOX ── */
.contact-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-top: 40px;
}
.contact-box p {
  margin: 0;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 32px 5vw;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
footer a {
  color: var(--muted);
  margin: 0 8px;
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--text);
}
