/**
 * Website styles – color tokens mirror lib/core/theme/app_colors.dart
 */

@font-face {
  font-display: swap;
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  src: url("../SourceSans3-Regular.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  src: url("../SourceSans3-Regular.ttf") format("truetype");
}

:root {
  /* Primary */
  --color-weathered-stone-grey: #47484a;
  --color-gloomy-iron-blue: #28303e;
  --color-rune-red: #7a2d28;
  --color-blood-red: #b82e28;

  /* Secondary */
  --color-mossy-earth-brown: #5a513c;
  --color-aged-parchment-beige: #d7c9a5;
  --color-burnished-bronze-ocher: #9c7a3b;

  /* Accent */
  --color-arcane-violet-glow: #6b3fa0;
  --color-ember-gold: #cfa450;
  --color-emerald-spark: #3b8f65;

  /* Neutral */
  --color-deep-dungeon-black: #1a1a1c;
  --color-cold-steel-grey: #62666a;
  --color-cold-steel-grey-50: rgba(98, 102, 106, 0.5);
  --color-pale-dust-white: #f2efe8;

  /* UI */
  --color-light-shining-blue: #7bbdd1;

  /* Semantic aliases */
  --color-bg: var(--color-deep-dungeon-black);
  --color-bg-elevated: var(--color-gloomy-iron-blue);
  --color-text: var(--color-pale-dust-white);
  --color-text-muted: var(--color-cold-steel-grey);
  --color-text-accent: var(--color-aged-parchment-beige);
  --color-link: var(--color-light-shining-blue);
  --color-link-hover: var(--color-ember-gold);
  --color-border: var(--color-weathered-stone-grey);

  --font-family-body: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 3rem;

  --content-max-width: 42rem;
}

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

html,
body {
  height: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family-body);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page--home {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.page--home main {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: var(--space-md);
}

.page--home main img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: auto;
}

.site-footer {
  padding: 1.25rem var(--space-md) 1.75rem;
  text-align: center;
}

.page--home .site-footer {
  background-color: var(--color-bg);
  flex-shrink: 0;
}

.site-footer__nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  justify-content: center;
}

.site-footer a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.site-footer a:hover {
  color: var(--color-text);
}

.page--legal main {
  margin: 0 auto;
  max-width: var(--content-max-width);
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  width: 100%;
}

.nav-back {
  color: var(--color-text-muted);
  display: inline-block;
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
}

.nav-back:hover {
  color: var(--color-text);
}

.legal-content h1 {
  color: var(--color-text);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}

.legal-content .subtitle {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
}

.legal-content h2 {
  color: var(--color-text-accent);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  margin-top: var(--space-lg);
}

.legal-content h3 {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  margin-top: var(--space-md);
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content address {
  color: var(--color-text);
  font-style: normal;
  margin-bottom: 1rem;
}

.legal-content address p {
  margin-bottom: var(--space-xs);
}

.legal-content ul {
  list-style: disc;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: var(--space-xs);
}

.legal-content li:last-child {
  margin-bottom: 0;
}

.legal-content strong {
  color: var(--color-text-accent);
  font-weight: 600;
}
