﻿/* =============================================================================
   FS Casino — rudapabianicka.com.pl
   Shared stylesheet for all pages. Dark theme, blue surfaces, orange CTAs.
   Mobile-first; CSS variables are the single source of truth for colors.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------------------- */
:root {
  --c-header: #1565ff;
  --c-accent: #1565ff;
  --c-cta: #ff6b1a;
  --c-cta-hover: #ff8340;
  --c-white: #ffffff;
  --c-bg: #0a0e1a;
  --c-card: #131a2b;
  --c-elev: #1c2740;
  --c-text: #e8ecf4;
  --c-muted: #9aa6bd;
  --radius: 14px;
  --container: 1180px;
  --header-h: 72px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --focus: 0 0 0 3px rgba(21, 101, 255, 0.55);
}

/* ---------------------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  /* Near-black base + subtle blue radial wash (fs.casino atmosphere) */
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(21, 101, 255, 0.18), transparent 60%),
    radial-gradient(800px 400px at 100% 30%, rgba(21, 101, 255, 0.08), transparent 50%),
    var(--c-bg);
  overflow-x: hidden;
  min-height: 100vh;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  color: var(--c-cta);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

ul,
ol {
  padding-left: 1.25rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: var(--c-white);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }

p { margin: 0 0 1rem; color: var(--c-text); }

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-cta);
  color: var(--c-white);
  padding: 0.75rem 1rem;
  z-index: 10000;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------------------------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------------------------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 2.5rem 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.section-title .accent {
  color: var(--c-cta);
}

.divider {
  border: 0;
  border-top: 1px solid rgba(154, 166, 189, 0.25);
  margin: 2rem 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0;
}

/* ---------------------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  text-align: center;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn--cta {
  background: var(--c-cta);
  color: var(--c-white);
}

.btn--cta:hover {
  background: var(--c-cta-hover);
  color: var(--c-white);
}

.btn--white {
  background: var(--c-white);
  color: #0a0e1a;
}

.btn--white:hover {
  background: #f0f3fa;
  color: #0a0e1a;
}

.btn--ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------------------
   5. Header (sticky blue bar)
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-header);
  min-height: var(--header-h);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-primary {
  display: none;
}

.nav-primary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
}

.nav-primary a {
  color: var(--c-white);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.2rem;
}

.nav-primary a:hover,
.nav-primary a[aria-current="page"] {
  color: #ffe0cc;
}

.nav-primary a[aria-current="page"] {
  border-bottom: 2px solid var(--c-white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  color: var(--c-white);
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer nav */
.nav-drawer {
  display: none;
  background: #0f1730;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-drawer.is-open {
  display: block;
}

.nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem 1.25rem;
}

.nav-drawer li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-drawer a {
  display: block;
  color: var(--c-white);
  font-weight: 700;
  padding: 0.9rem 0.25rem;
  text-transform: uppercase;
}

.nav-drawer a[aria-current="page"] {
  color: #ffd0b5;
}

@media (min-width: 960px) {
  .burger { display: none; }
  .nav-primary { display: block; }
  .nav-drawer { display: none !important; }
  .header-actions .btn--sm { padding: 0.65rem 1.15rem; }
}

/* ---------------------------------------------------------------------------
   6. Hero banner (content pages + home)
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(280px, 48vw, 460px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0b1a40;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.35) 0%, rgba(10, 14, 26, 0.72) 100%);
  z-index: -1;
}

.hero__panel {
  width: min(100% - 2rem, 640px);
  margin: 2rem auto;
  padding: 1.5rem 1.35rem;
  text-align: center;
  background: rgba(10, 14, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.hero__panel h1,
.hero__panel .hero-title {
  margin-bottom: 0.65rem;
}

.hero__panel p {
  color: var(--c-muted);
  margin-bottom: 1.15rem;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
   7. Category cards (Sport / Kasyno / E-sport)
   --------------------------------------------------------------------------- */
.categories {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #1a6dff 0%, var(--c-accent) 55%, #0f4fd6 100%);
  color: var(--c-white);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -35deg,
    transparent,
    transparent 12px,
    rgba(0, 0, 0, 0.04) 12px,
    rgba(0, 0, 0, 0.04) 24px
  );
  pointer-events: none;
}

.category-card:hover {
  color: var(--c-white);
  transform: translateY(-3px);
  background: linear-gradient(165deg, #2a75ff 0%, #1a6dff 55%, #1565ff 100%);
}

.category-card__icon {
  position: relative;
  font-size: 2.75rem;
  margin: 0.25rem auto 0.75rem;
  line-height: 1;
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.category-card h3 {
  position: relative;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.category-card__label {
  position: relative;
  display: inline-flex;
  align-self: stretch;
  justify-content: center;
  margin-top: auto;
  padding: 0.75rem 1rem;
  background: var(--c-white);
  color: #0a0e1a;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.category-card p {
  position: relative;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------------------------------------------------------------------
   8. Slots grid — 2 rows × 5 on desktop, reflows on tablet/mobile (from GPT)
   --------------------------------------------------------------------------- */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.slot-card {
  background: var(--c-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease;
}

.slot-card:hover {
  transform: translateY(-3px);
  background: var(--c-elev);
}

.slot-card a {
  color: inherit;
  display: block;
  text-decoration: none;
}

.slot-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.slot-card h3 {
  margin: 0;
  padding: 0.65rem 0.75rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-white);
}

@media (max-width: 1024px) {
  .slots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .slots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

/* ---------------------------------------------------------------------------
   9. Providers grid — homepage 2×5; footer shows all
   --------------------------------------------------------------------------- */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.provider-tile {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 0.75rem;
  background: var(--c-card);
  border-radius: var(--radius);
}

.provider-tile img {
  max-height: 36px;
  width: auto;
  filter: grayscale(1) brightness(1.15);
  opacity: 0.85;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.provider-tile:hover img,
.provider-tile a:focus-visible img {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

@media (min-width: 600px) {
  .providers-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .providers-grid--home { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------------------
   10. Bonus cards
   --------------------------------------------------------------------------- */
.bonuses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.bonus-card {
  display: flex;
  flex-direction: column;
  background: var(--c-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.bonus-card__media {
  background:
    repeating-linear-gradient(
      -35deg,
      transparent,
      transparent 14px,
      rgba(0, 0, 0, 0.06) 14px,
      rgba(0, 0, 0, 0.06) 28px
    ),
    var(--c-accent);
  min-height: 160px;
}

.bonus-card__media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.bonus-card__body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  background: var(--c-card);
}

.bonus-card__body h3 {
  font-size: 1.05rem;
  margin: 0;
}

.bonus-card__body p {
  color: var(--c-muted);
  font-size: 0.92rem;
  margin: 0 0 0.5rem;
  flex: 1;
}

.bonus-card__body .btn {
  width: 100%;
  border-radius: 10px;
}

@media (min-width: 700px) {
  .bonuses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .bonuses-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------------------
   11. SEO / prose content blocks
   --------------------------------------------------------------------------- */
.prose {
  max-width: none;
  display: flow-root;
}

.prose--wide {
  max-width: none;
  display: flow-root;
}

.content-block {
  position: relative;
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  margin: 1.5rem 0;
  overflow: hidden;
}

.content-block h2,
.content-block h3 {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.content-media {
  margin: 1.25rem 0;
  max-width: 720px;
}

.content-media--spaced {
  margin-top: 1.5rem;
}

.content-media--hero {
  margin: 1.75rem auto;
  max-width: min(100%, 1100px);
  text-align: center;
}

.content-media--hero a {
  display: inline-block;
  max-width: 100%;
}

.content-media--hero img {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius);
}

.content-media--inset {
  float: right;
  width: min(52%, 480px);
  max-width: 480px;
  margin: 0.15rem 0 1rem 1.35rem;
  shape-outside: margin-box;
}

.content-media img {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.content-media figcaption {
  display: none;
}

.table-wrap {
  clear: both;
}

@media (max-width: 640px) {
  .content-media--inset {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0.75rem 0 1rem;
  }
}

/* Data tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(154, 166, 189, 0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  background: #0f1628;
}

th,
td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(154, 166, 189, 0.15);
  vertical-align: top;
}

th {
  background: var(--c-elev);
  color: var(--c-white);
  font-weight: 700;
  font-size: 0.9rem;
}

td {
  color: var(--c-text);
  font-size: 0.92rem;
}

/* Cookies policy: card layout on mobile via data-label */
@media (max-width: 700px) {
  .table-cards thead {
    display: none;
  }

  .table-cards,
  .table-cards tbody,
  .table-cards tr,
  .table-cards td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .table-cards tr {
    background: var(--c-card);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(154, 166, 189, 0.18);
  }

  .table-cards td {
    border: 0;
    padding: 0.35rem 0;
  }

  .table-cards td::before {
    content: attr(data-label);
    display: block;
    color: var(--c-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
  }

  .table-wrap:has(.table-cards) {
    overflow: visible;
    border: 0;
  }
}

/* ---------------------------------------------------------------------------
   12. Breadcrumbs (internal pages only)
   --------------------------------------------------------------------------- */
.breadcrumbs {
  padding: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--c-muted);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 0.35rem;
  color: var(--c-muted);
}

.breadcrumbs a {
  color: var(--c-accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--c-text);
}

/* ---------------------------------------------------------------------------
   13. Legal pages
   --------------------------------------------------------------------------- */
.legal-meta {
  color: var(--c-muted);
  margin-bottom: 1.25rem;
}

.toc {
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}

.toc h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc a {
  color: var(--c-text);
}

.toc a:hover {
  color: var(--c-accent);
}

.legal-section {
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(154, 166, 189, 0.15);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.back-top {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-accent);
}

.notice-18 {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(255, 107, 26, 0.12);
  border: 1px solid rgba(255, 107, 26, 0.35);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}

.badge-18 {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--c-cta);
  color: var(--c-cta);
  font-weight: 800;
}

/* ---------------------------------------------------------------------------
   14. Footer
   --------------------------------------------------------------------------- */
.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
  background: #070b14;
  border-top: 1px solid rgba(154, 166, 189, 0.15);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-nav h2 {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--c-muted);
  font-size: 0.9rem;
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-nav a:hover {
  color: var(--c-white);
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 1.75rem;
  color: var(--c-muted);
}

.footer-contacts a {
  color: var(--c-accent);
  font-weight: 700;
}

.footer-logos {
  margin: 1.25rem 0;
}

.footer-logos h2,
.footer-block-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 0.85rem;
  color: var(--c-white);
}

.footer-providers,
.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.footer-providers li,
.footer-payments li {
  display: grid;
  place-items: center;
  flex: 1 1 88px;
  max-width: 120px;
  min-height: 48px;
  padding: 0.4rem;
  background: var(--c-card);
  border-radius: 10px;
}

.footer-providers img,
.footer-payments img {
  max-height: 28px;
  width: auto;
  max-width: 100%;
  filter: grayscale(0.3) brightness(1.1);
  opacity: 0.9;
}

.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: center;
  justify-content: flex-start;
}

.logo-cloud img {
  height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  opacity: 0.9;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.75rem;
}

.footer-badges img {
  display: inline-block;
  height: 24px;
  width: auto;
}

.badge-18--sm {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}

.hero-title {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--c-white);
  margin: 0 0 0.65rem;
}

.categories-list,
.slots-grid,
.providers-grid,
.bonuses-grid,
.logo-cloud,
.footer-providers,
.footer-payments {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal-text {
  color: var(--c-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  margin: 1.5rem 0 1rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(154, 166, 189, 0.15);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal-links a {
  color: var(--c-muted);
  font-size: 0.85rem;
}

.footer-copy {
  color: var(--c-muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .footer-nav {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------------------------------------------------------------------------
   15. Reduced motion
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Compatibility aliases for generated footer markup */
.footer-menus { /* alias */ }
.footer-nav .footer-col h2,
.footer-menus .footer-col h2 {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}
.footer-nav .footer-col ul,
.footer-menus .footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav .footer-col a,
.footer-menus .footer-col a {
  color: var(--c-muted);
  font-size: 0.9rem;
  display: inline-block;
  padding: 0.25rem 0;
}
.footer-nav .footer-col a:hover,
.footer-menus .footer-col a:hover { color: var(--c-white); }
.footer-nav .footer-col li + li,
.footer-menus .footer-col li + li { margin-top: 0.15rem; }
.footer-license {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1.25rem 0;
  color: var(--c-muted);
  font-size: 0.88rem;
}
.footer-license .badge-18 { margin-top: 0.15rem; }
.rg-icons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; align-items: center; }
.rg-icons img { height: 28px; width: auto; opacity: 0.9; }
.emoji-accent { margin-right: 0.35rem; }