/* ==========================================================================
   FunGame — "Meadow" theme
   Loaded AFTER screen.css. Re-skins the whole portal:
     primary  #c1eba2   (soft spring green)
     surface  new warm off-white canvas instead of pure #fff
   Class names used by this layer (.site-header, .site-footer, .game-card …)
   deliberately avoid the base template's names so the two layers never fight
   on cascade specificity.
   ========================================================================== */

:root {
  --brand:        #c1eba2;   /* primary theme colour */
  --brand-100:    #eaf7de;
  --brand-200:    #dcf3c8;
  --brand-300:    #c1eba2;
  --brand-400:    #a6d97d;
  --brand-500:    #86c25a;
  --brand-600:    #63a238;
  --brand-700:    #4a7d2a;
  --brand-ink:    #2f4d1c;   /* text on the light green */

  --bg:           #f2f6ec;   /* page background (was #fff) */
  --surface:      #ffffff;
  --surface-2:    #f7faf3;

  --text:         #2b3524;
  --text-soft:    #66705c;
  --line:         #dfe8d3;

  --accent:       #ff8a3d;   /* warm counterpoint for CTAs */
  --accent-2:     #ff6b6b;

  --radius:       18px;
  --shadow-1:     0 2px 10px rgba(47, 77, 28, .07);
  --shadow-2:     0 10px 28px rgba(47, 77, 28, .12);
  --ring:         0 0 0 3px rgba(193, 235, 162, .55);

  --font: "Nunito", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
          "PingFang SC", "Microsoft YaHei", Roboto, Arial, sans-serif;
}

/* ---------- base reset / typography ------------------------------------ */

html {
  font-size: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--text);
  /* new page background: soft green-tinted canvas with light washes */
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 12% -8%, rgba(193, 235, 162, .55), transparent 60%),
    radial-gradient(900px 460px at 92% 4%, rgba(255, 255, 255, .85), transparent 62%),
    radial-gradient(760px 520px at 50% 108%, rgba(193, 235, 162, .28), transparent 65%);
  background-attachment: fixed;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
  font-family: var(--font);
  font-weight: 900;
  text-transform: none;
  letter-spacing: -.01em;
  color: var(--brand-ink);
}

h1, .h1 { font-size: 1.9rem; line-height: 1.2; }
h2, .h2 { font-size: 1.4rem; line-height: 1.25; }
h3, .h3 { font-size: 1.1rem; }
p         { font-weight: 500; color: var(--text-soft); }

a { color: var(--brand-600); }
a:hover { color: var(--brand-700); }

::selection { background: var(--brand-300); color: var(--brand-ink); }

.app-container { width: 100%; overflow: hidden; }

/* centred content column — wider and roomier than the old 900px */
.main-section {
  margin: 0 auto;
  width: 100%;
  max-width: 1180px;
  box-sizing: border-box;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--brand-300) 0%, var(--brand-400) 100%);
  box-shadow: 0 2px 0 rgba(74, 125, 42, .18), 0 10px 26px rgba(47, 77, 28, .12);
}

.site-header .bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---- logo ---- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--brand-ink);
  box-shadow: 0 4px 12px rgba(47, 77, 28, .3);
  transform: rotate(-4deg);
}
.brand-mark svg { width: 24px; height: 24px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b {
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--brand-ink);
}
.brand-text i {
  font-style: normal;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-700);
}

/* ---- search ---- */
.site-search {
  margin-left: auto;
  position: relative;
  flex: 1 1 auto;
  max-width: 330px;
}
.site-search input {
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 40px;
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  font-family: var(--font);
  font-size: .93rem;
  font-weight: 700;
  color: var(--text);
  outline: none;
  transition: box-shadow .15s ease, background .15s ease;
}
.site-search input::placeholder { color: #8a9a7c; font-weight: 600; }
.site-search input:focus {
  background: #fff;
  border-color: var(--brand-ink);
  box-shadow: var(--ring);
}
.site-search .ico-search {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  opacity: .55;
  pointer-events: none;
}
.site-search .ico-clear {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(74, 125, 42, .16);
  color: var(--brand-ink);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: none;
}
.site-search.has-value .ico-clear { display: block; }

/* ---- language ---- */
.lang-switch {
  position: relative;
  flex-shrink: 0;
  width: 62px;
  height: 40px;
  border-radius: 999px;
  background: var(--brand-ink);
  color: var(--brand-200);
  overflow: hidden;
}
.lang-switch .value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .06em;
  pointer-events: none;
}
.lang-switch .value::after {
  content: "";
  margin-left: 7px;
  border: 4px solid transparent;
  border-top-color: var(--brand-200);
  transform: translateY(2px);
}
.lang-switch select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
}

/* ==========================================================================
   CATEGORY NAV
   ========================================================================== */

.cat-nav { background: var(--brand-ink); }

.cat-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
}

.cat-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  background: var(--brand-600);
  color: #fff;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.cat-toggle .bars,
.cat-toggle .bars::before,
.cat-toggle .bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.cat-toggle .bars { position: relative; }
.cat-toggle .bars::before,
.cat-toggle .bars::after { content: ""; position: absolute; left: 0; }
.cat-toggle .bars::before { top: -6px; }
.cat-toggle .bars::after  { top: 6px; }
.cat-nav.open .cat-toggle .bars { background: transparent; }
.cat-nav.open .cat-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.cat-nav.open .cat-toggle .bars::after  { transform: translateY(-6px) rotate(-45deg); }

.cat-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-list::-webkit-scrollbar { display: none; }
.cat-list li { margin: 0; }

.cat-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 15px;
  white-space: nowrap;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--brand-200);
  border-bottom: 3px solid transparent;
  transition: color .14s ease, background .14s ease;
}
.cat-list a img,
.cat-list a svg {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .75;
}
.cat-list a:hover { background: rgba(193, 235, 162, .14); color: #fff; }
.cat-list a:hover img { opacity: 1; }
.cat-list a.is-active {
  color: var(--brand-ink);
  background: var(--brand-300);
  border-bottom-color: var(--accent);
}
.cat-list a.is-active img { filter: none; opacity: 1; }

/* ==========================================================================
   CONTENT / SECTION HEADINGS
   ========================================================================== */

.content { background: transparent; min-height: 60vh; }
.content .main-section { margin-top: 34px; margin-bottom: 34px; }

/* left-aligned heading with an accent bar (was centred uppercase caps) */
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand-ink);
  text-decoration: none;
}
.section-head .tag-ico {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--brand-200);
  padding: 6px;
  object-fit: contain;
}
.section-head .bar {
  width: 6px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
}
.section-head .count {
  margin-left: auto;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-100);
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  padding: 3px 11px;
}
.section-head:hover .bar { background: linear-gradient(180deg, var(--accent), var(--accent-2)); }

/* ==========================================================================
   GAME GRID
   ========================================================================== */

ul.games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px 18px;
}
ul.games::before,
ul.games::after { content: none; }

ul.games li {
  position: relative;
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

.game-card {
  display: block;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--brand-400);
  box-shadow: var(--shadow-2);
  outline: none;
}
.game-card:focus-visible { box-shadow: var(--ring), var(--shadow-2); }

.game-card .thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--brand-100);
}
.game-card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .28s ease;
}
.game-card:hover .thumb img { transform: scale(1.07); }

/* soft play glyph on hover */
.game-card .thumb::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(47, 77, 28, .82) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c1eba2' d='M8 5.2v13.6L19 12z'/%3E%3C/svg%3E") center / 15px no-repeat;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease;
}
.game-card:hover .thumb::after { opacity: 1; transform: translateY(0); }

.game-card .card-body {
  display: block;
  padding: 10px 12px 13px;
  text-align: center;
}
.game-card .card-title {
  display: -webkit-box;
  font-size: .87rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.26em;
}
.game-card:hover .card-title { color: var(--brand-700); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-container { margin: 26px 0 8px; text-align: center; }

.btn,
.btn-highlight,
.btn-primary,
.btn-neutral,
.btn-transparent {
  font-family: var(--font);
  font-weight: 900;
  border-radius: 999px;
  border: 0;
  text-transform: none;
  letter-spacing: .02em;
  box-shadow: none;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.btn-container .btn,
.btn-container .btn-highlight,
.btn-container .btn-primary { padding: 13px 42px; }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  color: #fff;
  box-shadow: 0 6px 16px rgba(99, 162, 56, .32);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  color: #fff;
  transform: translateY(-2px);
}

.btn-highlight,
.game .play-btn {
  background: linear-gradient(180deg, #ffa15c, var(--accent));
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 138, 61, .34);
}
.btn-highlight:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
  transform: translateY(-2px);
}

.btn-neutral,
.btn {
  background: var(--surface);
  color: var(--brand-700);
  border: 2px solid var(--brand-200);
}
.btn-neutral:hover,
.btn:hover { background: var(--brand-100); color: var(--brand-ink); }

/* ==========================================================================
   GAME DETAIL PAGE
   ========================================================================== */

.game header { margin-bottom: 30px; }

.game header .background {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.game header .background .backgroundDarken {
  padding: 46px 0;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(193, 235, 162, .32), transparent 70%),
    linear-gradient(180deg, rgba(28, 44, 20, .78), rgba(28, 44, 20, .88));
}
.game header .icon {
  display: block;
  width: 132px;
  max-width: 100%;
  margin: 0 auto 18px;
  border: 4px solid var(--brand-300);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.game header h1 {
  color: #fff;
  font-size: 2rem;
  margin: 0;
  text-align: center;
}
.game .play-btn-container {
  position: relative;
  height: 54px;
  margin: 22px 0 0;
}
.game .play-btn-container:before,
.game .play-btn-container:after { display: none; }
.game .play-btn-container .play-btn {
  display: inline-block;
  margin: 0 auto;
  min-width: 190px;
  height: 54px;
  font-size: 1.05rem;
  line-height: 54px;
  text-decoration: none;
  border-radius: 999px;
}

.game .game-categories ul li {
  background: var(--brand-100);
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  margin: 0 6px 6px 0;
}
.game .game-categories ul li a {
  padding: 6px 14px;
  font-weight: 800;
  color: var(--brand-700);
  text-decoration: none;
}
.game .similarGames { margin: 34px 0; }
.game .similarGames h2 { text-align: left; margin-bottom: 18px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  margin-top: 56px;
  padding: 0;
  background: var(--surface);
  border-top: 4px solid var(--brand-300);
  box-shadow: 0 -8px 24px rgba(47, 77, 28, .06);
  color: var(--text);
}
.site-footer a { color: var(--text); }

.site-footer .footer-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 0;
}

.site-footer .foot-title {
  margin: 0 0 14px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.site-footer .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-start;
}
.site-footer .tag-list li { margin: 0; padding: 0; }
.site-footer .tag-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: .82rem;
  font-weight: 800;
  text-transform: none;
  color: var(--text-soft);
  text-decoration: none;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.site-footer .tag-list a img {
  width: 17px;
  height: 17px;
  opacity: .6;
}
.site-footer .tag-list a:hover,
.site-footer .tag-list a.is-active {
  background: var(--brand-200);
  border-color: var(--brand-400);
  color: var(--brand-ink);
}

.site-footer .legal {
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 18px 24px 8px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.site-footer .legal p {
  margin: 0;
  font-size: .84rem;
  font-weight: 700;
  color: var(--text-soft);
}
.site-footer .legal a {
  color: var(--brand-700) !important;
  font-weight: 800;
  text-decoration: none;
}
.site-footer .legal a:hover { text-decoration: underline; }
.site-footer .legal .sep { color: var(--brand-400); padding: 0 4px; }

.site-footer .copyright {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 28px;
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  color: #9aa791;
}

/* ==========================================================================
   FLOATING BITS
   ========================================================================== */

/* back-to-top */
.backToTop {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  background: var(--brand-ink);
  box-shadow: 0 8px 22px rgba(47, 77, 28, .34);
  display: grid;
  place-items: center;
  transition: transform .15s ease, background .15s ease;
}
.backToTop:hover { transform: translateY(-3px); background: var(--brand-600); }
.backToTop img { width: 20px; height: 20px; filter: invert(1) sepia(0) saturate(0); }

/* fullscreen game layer */
.app-module { background: #1b2a14; }
.app-module .setting {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(193, 235, 162, .92) no-repeat center / 20px
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232f4d1c' d='M19 6.4 17.6 5 12 10.6 6.4 5 5 6.4l5.6 5.6L5 17.6 6.4 19l5.6-5.6 5.6 5.6 1.4-1.4-5.6-5.6z'/%3E%3C/svg%3E") !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

/* ==========================================================================
   EMPTY STATE / MISC
   ========================================================================== */

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-soft);
}
.empty-state .big { font-size: 3rem; line-height: 1; }
.empty-state p { margin: 12px 0 0; font-weight: 700; }

mark.hit {
  background: var(--brand-300);
  color: var(--brand-ink);
  border-radius: 4px;
  padding: 0 2px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media only screen and (max-width: 1080px) {
  ul.games { grid-template-columns: repeat(5, 1fr); }
}

@media only screen and (max-width: 900px) {
  ul.games { grid-template-columns: repeat(4, 1fr); gap: 16px 14px; }
  .main-section,
  .site-header .bar,
  .cat-nav-inner,
  .site-footer .footer-inner,
  .site-footer .legal,
  .site-footer .copyright { padding-left: 16px; padding-right: 16px; }
}

@media only screen and (max-width: 720px) {
  .cat-toggle { display: flex; }
  .cat-nav-inner { flex-wrap: wrap; }
  .cat-list {
    order: 2;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    transition: max-height .22s ease;
  }
  .cat-nav.open .cat-list { max-height: 60vh; overflow-y: auto; padding: 6px 0 10px; }
  .cat-list a { height: 42px; border-bottom: 0; border-left: 3px solid transparent; border-radius: 0; }
  .cat-list a.is-active { border-left-color: var(--accent); }

  .site-search { order: 3; width: 100%; flex-basis: 100%; max-width: none; margin: 0 0 2px; }
  .site-header .bar { flex-wrap: wrap; }
  .lang-switch { order: 2; }
  .brand-text i { display: none; }
  .brand-text b { font-size: 1.2rem; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }

  ul.games { grid-template-columns: repeat(3, 1fr); }
  h1, .h1 { font-size: 1.5rem; }
  .section-head { font-size: 1.15rem; }
  .section-head .count { display: none; }
  .game header .background .backgroundDarken { padding: 32px 0; }
  .game header h1 { font-size: 1.45rem; }
}

@media only screen and (max-width: 520px) {
  ul.games { grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
  .game-card .card-body { padding: 8px 9px 11px; }
  .game-card .card-title { font-size: .8rem; }
  .game-card .thumb::after { display: none; }
  .btn-container .btn,
  .btn-container .btn-primary { padding: 12px 30px; }
  .game .play-btn-container .play-btn { min-width: 150px; }
}

/* ==========================================================================
   FULLSCREEN PLAYER (detail page)
   ========================================================================== */

.player-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 100000;
  background: #131f0f;
}
.player-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand-300);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
  cursor: pointer;
  transition: transform .14s ease, background .14s ease;
}
.player-close:hover { transform: scale(1.08); background: var(--brand-400); }

body.is-playing { overflow: hidden; }
body.is-playing .app-container { display: none; }

/* ==========================================================================
   LEGAL / STATIC PAGES
   ========================================================================== */

.legal-page {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 24px 70px;
}

.legal-page .crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-700);
  text-decoration: none;
}
.legal-page .crumbs:hover { color: var(--brand-ink); }

.legal-page .legal-head {
  margin: 18px 0 6px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--brand-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.legal-page .legal-head h1 {
  margin: 0 0 6px;
  font-size: 1.75rem;
  color: var(--brand-ink);
}
.legal-page .legal-head p {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  color: #9aa791;
}

.legal-page .card {
  margin-top: 20px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.legal-page h2 {
  margin: 30px 0 10px;
  font-size: 1.1rem;
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-page h2::before {
  content: "";
  width: 6px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
}
.legal-page h2:first-child { margin-top: 0; }

.legal-page h3 { margin: 20px 0 6px; font-size: .95rem; color: var(--brand-700); }
.legal-page p { margin: 0 0 12px; font-weight: 500; line-height: 1.7; }
.legal-page ul { margin: 0 0 14px; padding-left: 4px; list-style: none; }
.legal-page ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 1.65;
}
.legal-page ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-400);
}
.legal-page a { color: var(--brand-600); font-weight: 700; }

.legal-page .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.legal-page .legal-links a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--brand-100);
  border: 1px solid var(--brand-200);
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
}
.legal-page .legal-links a:hover { background: var(--brand-200); color: var(--brand-ink); }

@media only screen and (max-width: 600px) {
  .legal-page { padding: 26px 16px 50px; }
  .legal-page .legal-head,
  .legal-page .card { padding: 20px 18px; }
  .legal-page .legal-head h1 { font-size: 1.4rem; }
}
