/*
 * Siilo's site: one stylesheet, no framework and no build. The colors are the app's
 * (siilo-app/src/constants/theme.ts): the bright green is a fill, never text on white; brand text on white is the
 * dark green (5.5:1), so every text pair passes WCAG AA.
 */

:root {
  --green: #00c483; /* fills */
  --green-dark: #047857; /* brand text and links on white */
  --green-light: #e6f9f3;
  --text: #111111;
  --text-secondary: #45556c;
  --background: #f7fbfd;
  --white: #ffffff;
  --border: #e0e1e6;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-dark);
}

:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 20;
  background: var(--white);
  padding: 8px 12px;
}

/* ---------- Header and footer ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 72px;
}

.brand img {
  display: block;
  width: 96px;
}

.site-footer {
  margin-top: 64px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* ---------- Home ---------- */

.home {
  padding: 72px 0 24px;
  text-align: center;
}

.home .logo {
  width: 220px;
}

.home p {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* ---------- Text pages: legal, delete account, 404 ---------- */

.page {
  padding-top: 40px;
}

.page h1 {
  font-size: 2rem;
  line-height: 1.2;
}

.page h2 {
  margin-top: 40px;
  font-size: 1.35rem;
}

.page h3 {
  margin-top: 28px;
  font-size: 1.1rem;
}

.draft {
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--green-light);
}

.page table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

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