/* ---- Hamster Day — shared styles for legal pages (EULA / Privacy) ---- */

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('resource/fonts/baloo2_variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('resource/fonts/nunito_variable.woff2') format('woff2');
}

:root {
  --cream:      #FFF8EE;
  --cream-2:    #FDEFD8;
  --card:       #FFFFFF;
  --orange:     #FF8A3D;
  --orange-deep:#F97316;
  --coral-soft: #FFD9C7;
  --brown:      #4A2F1E;
  --brown-soft: #8A6A53;
  --line:       #F0E0CC;
  --gray-text:  #8C8375;
  --shadow:     0 18px 40px -18px rgba(74,47,30,.35);
  --max:        1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--brown);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(255,138,61,.10) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

h1, h2, .brand { font-family: 'Baloo 2', 'Nunito', cursive; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255,248,238,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .in {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.3rem; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand span { color: var(--orange-deep); }
.brand .brand-text { color: var(--brown); }
.brand .brand-text span { color: var(--orange-deep); }
.back { font-weight: 800; font-size: .95rem; color: var(--brown-soft); transition: color .2s; white-space: nowrap; }
.back:hover { color: var(--orange-deep); }
.back .short { display: none; }

/* ---------- document card ---------- */
main { max-width: 820px; margin: 44px auto 64px; padding: 0 24px; position: relative; z-index: 1; }

.doc {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); padding: 46px 48px 54px;
}
.doc .eyebrow {
  display: inline-block; font-family: 'Baloo 2', sans-serif; font-weight: 700;
  font-size: .78rem; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--orange-deep); background: var(--coral-soft);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 10px; }
.doc .entity {
  display: inline-block; font-weight: 800; color: var(--brown);
  background: var(--cream-2); border: 1px solid var(--line);
  padding: 4px 12px; border-radius: 8px; font-size: .92rem; margin-bottom: 8px;
}
.doc .updated { font-size: .86rem; font-weight: 700; color: var(--gray-text); margin-bottom: 30px; }
.doc .lead { font-weight: 600; color: var(--brown-soft); margin-bottom: 8px; }

.doc h2 {
  font-size: 1.24rem; font-weight: 800; margin: 34px 0 10px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.doc h2:first-of-type { border-top: none; padding-top: 0; margin-top: 30px; }
.doc p { font-weight: 500; color: #5C4433; margin-bottom: 12px; }
.doc p strong { color: var(--brown); font-weight: 800; }
.doc ul { margin: 0 0 14px 22px; }
.doc li { font-weight: 500; color: #5C4433; margin-bottom: 7px; }
.doc a { color: var(--orange-deep); font-weight: 700; }
.doc a:hover { text-decoration: underline; }
.doc address { font-style: normal; color: var(--brown-soft); font-weight: 600; line-height: 1.7; }

.doc .notice {
  margin-top: 36px; padding: 16px 20px; border-radius: 14px;
  background: var(--cream-2); border: 1px dashed var(--line);
  font-size: .88rem; font-weight: 600; color: var(--brown-soft);
}

/* ---------- footer ---------- */
footer { padding: 8px 24px 48px; text-align: center; color: var(--brown-soft); position: relative; z-index: 1; }
footer .f-links { display: flex; gap: 22px; justify-content: center; font-weight: 700; margin-bottom: 12px; flex-wrap: wrap; }
footer .f-links a:hover { color: var(--orange-deep); }
footer .f-legal { font-size: .82rem; font-weight: 600; opacity: .78; margin-bottom: 8px; }
footer .f-copy { font-size: .82rem; font-weight: 600; opacity: .8; }

@media (max-width: 640px) {
  main { margin: 26px auto 44px; }
  .doc { padding: 30px 22px 36px; border-radius: 18px; }
  .top .in { height: 64px; }
  .brand { font-size: 1.15rem; }
  .brand img { width: 34px; height: 34px; }
  .back { font-size: .86rem; }
  .back .long { display: none; }
  .back .short { display: inline; }
}
