/* Shared styles for all dice-cat.com pages */

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

:root {
  --green: #16a75a;
  --green-hover: #128c4a;
  --green-bright: #22c55e;
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e5e5e5;
  --text: #1a1a1a;
  --muted: #666666;
  --subtle: #999999;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #1a1a1a;
    --border: #333333;
    --text: #e5e5e5;
    --muted: #a3a3a3;
    --subtle: #6b7280;
    --green: #22c55e;
    --green-hover: #16a34a;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* ── Header ── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  background: none;
  border-radius: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
}

.logo-composite-svg {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(22, 167, 90, 0.2));
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: normal;
}

nav a:hover,
nav a.active {
  color: var(--green);
}

/* ── Main content container (legal/sub pages) ── */
body.page-content {
  background: var(--bg);
}

main .container {
  max-width: 900px;
  margin: 20px auto;
  background: var(--surface);
  padding: 40px;
  border-radius: 12px;
}

h1 {
  color: var(--green);
  font-size: 2.5em;
  margin-bottom: 10px;
  text-align: center;
}

h2 {
  color: var(--green);
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
}

h3 {
  color: var(--green);
  font-size: 1.3em;
  margin-top: 25px;
  margin-bottom: 15px;
}

p { margin-bottom: 15px; text-align: justify; }

ul, ol { margin-bottom: 20px; margin-left: 30px; }
li { margin-bottom: 10px; }

a { color: var(--green); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }

strong { color: var(--green); }

.subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.1em;
  margin-bottom: 10px;
}

.last-updated {
  text-align: center;
  color: var(--subtle);
  font-size: 0.9em;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

/* ── Info boxes ── */
.warning-box {
  background: #3d2e00;
  border-left: 4px solid #ffc107;
  padding: 20px;
  margin: 25px 0;
  border-radius: 4px;
  color: var(--text);
}

.danger-box {
  background: #3d0000;
  border-left: 4px solid #dc3545;
  padding: 20px;
  margin: 25px 0;
  border-radius: 4px;
  color: var(--text);
}

.info-box {
  background: #003040;
  border-left: 4px solid #17a2b8;
  padding: 20px;
  margin: 25px 0;
  border-radius: 4px;
  color: var(--text);
}

.highlight-box {
  background: var(--surface);
  border: 2px solid var(--green);
  padding: 20px;
  margin: 25px 0;
  border-radius: 8px;
}

.contact-box {
  background: var(--green);
  color: white;
  padding: 30px;
  margin: 40px 0;
  border-radius: 8px;
  text-align: center;
}

.contact-box h3 { color: white; border: none; margin-top: 0; }
.contact-box strong { color: white; }
.contact-box a { color: #fff; font-weight: bold; text-decoration: underline; }

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
}

footer .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

footer p { margin-bottom: 8px; text-align: center; }
footer a { color: var(--green); margin: 0 8px; font-weight: normal; }

/* ── Responsive ── */
@media (max-width: 768px) {
  header .container { flex-direction: column; gap: 16px; }
  nav { gap: 16px; flex-wrap: wrap; justify-content: center; }
  main .container { padding: 24px; margin: 12px; border-radius: 8px; }
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.4em; }
}
