@font-face { font-family: 'SmallBoldPixel'; src: url('/assets/small_bold_pixel-7.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'EXEPixelPerfect'; src: url('/assets/EXEPixelPerfect.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'MegatransPixel'; src: url('/assets/MegatransPixel-Regular.otf') format('opentype'); font-display: swap; }
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --bg: #161616; --text: #ffffff; --muted: #aaaaaa; --gold: #D4AF37; --bar: #000000; --line: rgba(212, 175, 55, 0.18); --card: rgba(255, 255, 255, 0.03); }
[data-theme='light'] { --bg: #dedede; --text: #111111; --muted: #555555; --gold: #b8860b; --bar: #ffffff; --line: rgba(0, 0, 0, 0.12); --card: rgba(0, 0, 0, 0.03); }
body { background: var(--bg); color: var(--muted); font-family: 'Inter', sans-serif; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }

/* top bar matches the home page */
.pg-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 45px; padding: 14px max(24px, calc((100% - 1280px) / 2 + 60px)); background: var(--bar); }
.pg-logo { display: flex; align-items: center; text-decoration: none; color: var(--gold); font-family: 'SmallBoldPixel', sans-serif; font-size: 43px; letter-spacing: 1px; line-height: 1; }
.pg-logo img { height: 39px; width: auto; margin-right: 10px; }
.pg-back { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; border: 1px solid var(--gold); border-radius: 24px; background: rgba(255, 255, 255, 0.05); color: var(--text); text-decoration: none; font-family: 'EXEPixelPerfect', sans-serif; font-size: 17px; font-weight: bold; transition: background-color 0.2s ease; }
.pg-back:hover, .pg-back:focus-visible { background: rgba(255, 255, 255, 0.15); }
[data-theme='light'] .pg-back { background: rgba(0, 0, 0, 0.03); }
[data-theme='light'] .pg-back:hover, [data-theme='light'] .pg-back:focus-visible { background: rgba(0, 0, 0, 0.08); }

.pg-main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 48px 24px 56px; }
h1 { font-family: 'MegatransPixel', sans-serif; color: var(--gold); font-size: clamp(26px, 5vw, 40px); letter-spacing: 1px; line-height: 1.15; margin-bottom: 20px; }
.pg-main > p { font-size: 16px; max-width: 720px; margin-bottom: 8px; }
.pg-main strong { color: var(--text); }

.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 32px; margin-top: 36px; }
.faq-item { border-top: 1px solid var(--line); padding-top: 16px; }
.faq-item h3 { color: var(--gold); font-size: 17px; margin-bottom: 8px; }
.faq-item p { font-size: 15px; }

/* Terms and Privacy */
.pg-legal { max-width: 780px; }
.pg-legal h2 { color: var(--text); font-size: 20px; margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pg-legal p, .pg-legal li { font-size: 15px; margin-bottom: 12px; }
.pg-legal ul { padding-left: 24px; margin-bottom: 16px; }
.pg-legal li { margin-bottom: 6px; }
.pg-legal a { color: var(--gold); }
.pg-legal .updated { color: var(--gold); font-size: 13px; font-weight: 600; margin-bottom: 32px; }
.pg-legal .highlight { background: var(--card); border-left: 3px solid var(--gold); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 14px; }
.pg-legal .highlight p:last-child { margin-bottom: 0; }

.legal-tabs { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal-tabs a { padding: 0 0 10px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: color 0.2s ease, border-color 0.2s ease; }
.legal-tabs a:hover, .legal-tabs a:focus-visible { color: var(--text); }
.legal-tabs a[aria-current='page'] { color: var(--gold); border-bottom-color: var(--gold); }

/* Socials */
.social-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 32px; }
.social-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.social-card:hover, .social-card:focus-visible { border-color: var(--gold); transform: translateY(-2px); }
.social-card img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.social-card svg { width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: var(--bar); color: var(--gold); flex-shrink: 0; }
.social-card span { display: flex; flex-direction: column; min-width: 0; }
.social-card strong { color: var(--text); font-size: 16px; }
.social-card small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Footer (same as the home page) */
.site-footer { display: flex; align-items: center; padding: 14px 20px 16px; border-top: 1px solid var(--line); font-family: 'Inter', sans-serif; font-size: 11px; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.site-footer a, .footer-made, .footer-sep { color: var(--muted); text-decoration: none; opacity: 0.55; transition: opacity 0.2s ease, color 0.2s ease; }
.footer-sep { opacity: 0.3; }
.site-footer a:hover, .site-footer a:focus-visible { opacity: 1; color: var(--gold); }
/* blends into the page: still a real link for search engines and keyboard users */
.site-footer a.footer-quiet, .site-footer a.footer-quiet:hover { color: var(--bg); opacity: 1; }
.site-footer a.footer-quiet:focus-visible { color: var(--gold); }
.footer-made .gold-name {
  opacity: 1;
  font-weight: 700;
  background: linear-gradient(100deg, #9a7420 0%, #d4af37 30%, #fff1b8 50%, #d4af37 70%, #9a7420 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-shine 3.5s ease-in-out infinite;
}
.site-footer .footer-made .gold-name:hover, .site-footer .footer-made .gold-name:focus-visible { color: transparent; }
@keyframes gold-shine { 0% { background-position: 100% 0; } 100% { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .footer-made .gold-name { animation: none; background-position: 50% 0; } }

@media (max-width: 600px) {
  .pg-header { padding: 12px 16px; }
  .pg-logo { font-size: 28px; }
  .pg-logo img { height: 26px; margin-right: 7px; }
  .pg-back { padding: 7px 12px; font-size: 14px; }
  .pg-main { padding: 32px 16px 40px; }
  .site-footer { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .social-card { transition: none; } .social-card:hover { transform: none; } }
