/* moedly.app static site. System fonts only: no third-party requests from the privacy pages. */
:root {
  color-scheme: light dark;
  --bg: #faf8ff;
  --surface: #f3f2ff;
  --text: #161b2e;
  --text-secondary: #4a5068;
  --primary: #412ae7;
  --border: #e3dfff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #151b2d;
    --text: #f8fafc;
    --text-secondary: #b4bacb;
    --primary: #a5b0fb;
    --border: #242b66;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

main,
header,
footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 8px;
}

.brand {
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

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

h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 32px 0 8px;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 40px 0 8px;
}

h3 {
  font-size: 18px;
  margin: 24px 0 4px;
}

.meta {
  color: var(--text-secondary);
  font-size: 15px;
}

.summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 20px;
  margin: 24px 0;
}

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

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

th {
  font-weight: 700;
}

/* Tables collapse to stacked rows on phones so nothing scrolls sideways. */
@media (max-width: 600px) {
  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }

  td {
    border: 0;
    padding: 2px 0;
  }

  td:first-child {
    font-weight: 700;
  }
}

.email {
  unicode-bidi: isolate;
  direction: ltr;
}

footer {
  color: var(--text-secondary);
  font-size: 15px;
  padding-top: 48px;
  padding-bottom: 48px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
