/* Shared styles for wotri.app. Colors match the app (constants/theme.ts). */
:root {
  --background: #121212;
  --surface: #1e1e1e;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-body: #dadada;
  --text-muted: #8b8b8b;
  --accent: #ff5722;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  border-bottom: 1px solid var(--border);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  margin-left: 18px;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
}

main {
  padding: 40px 0 64px;
}

h1 {
  color: var(--text);
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 8px;
}

h2 {
  color: var(--text);
  font-size: 21px;
  margin: 36px 0 8px;
}

.updated {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 20px 0;
}

.card h2 {
  margin-top: 0;
}

/* Home page */
.hero {
  text-align: center;
  padding: 72px 0 40px;
}

.hero img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
}

.hero h1 {
  font-size: 44px;
  margin-top: 20px;
}

.tagline {
  font-size: 20px;
  color: var(--text-body);
  margin: 0 auto 28px;
  max-width: 460px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
}

.note {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 14px;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  padding: 24px 0 40px;
}

footer a {
  color: var(--text-muted);
  margin-right: 16px;
}

@media (max-width: 480px) {
  nav a {
    margin-left: 12px;
  }
  .hero h1 {
    font-size: 36px;
  }
}

/* Legal pages */
ul {
  padding-left: 22px;
}

li {
  margin: 6px 0;
}

.table {
  overflow-x: auto;
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text);
  white-space: nowrap;
}

td:first-child {
  color: var(--text);
  font-weight: 600;
}
