/*
  Shared styling for the platform's own pages: the landing page, the privacy
  policy and the terms. Kept in one file so the three cannot drift apart.

  Served from wwwroot, so it is reachable on the platform hosts only - static
  files are mounted after tenant resolution, and an unknown host never gets
  that far.
*/

:root {
  --bg: #ffffff;
  --surface: #f7f7fb;
  --text: #15151c;
  --muted: #5c5c72;
  --line: #e4e4ef;
  --brand: #4f46e5;
  --brand-ink: #ffffff;
  --warn-bg: #fff8e6;
  --warn-line: #e8d9a8;
  --warn-text: #6b5618;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e0e14;
    --surface: #16161f;
    --text: #f2f2f7;
    --muted: #a0a0b8;
    --line: #272733;
    --brand: #7c73ff;
    --warn-bg: #2a2410;
    --warn-line: #4a3f1c;
    --warn-text: #e8d9a8;
  }
}

:root[data-theme='dark'] {
  --bg: #0e0e14;
  --surface: #16161f;
  --text: #f2f2f7;
  --muted: #a0a0b8;
  --line: #272733;
  --brand: #7c73ff;
  --warn-bg: #2a2410;
  --warn-line: #4a3f1c;
  --warn-text: #e8d9a8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.65 ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

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

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

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: inherit;
}

.dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex: none;
  background: linear-gradient(135deg, var(--brand), #a855f7);
}

.btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 9px;
  background: var(--brand);
  color: var(--brand-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

main .wrap {
  padding-top: 56px;
  padding-bottom: 72px;
}

h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 38px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 16px;
  margin: 22px 0 6px;
}

.lede {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 54ch;
}

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

p,
li {
  color: var(--text);
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 7px;
}

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

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

th {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.92em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 52px;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
}

.card h2 {
  font-size: 15px;
  margin: 0 0 6px;
  border-top: none;
  padding-top: 0;
}

.card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.note {
  margin-top: 40px;
  padding: 15px 17px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.note strong {
  color: var(--text);
  font-weight: 600;
}

/* Marks a value the business still has to supply. Deliberately loud: these
   must not reach a published page unnoticed. */
.todo {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-text);
  border-radius: 5px;
  padding: 1px 6px;
  font-weight: 600;
  font-size: 0.92em;
  white-space: nowrap;
}

.callout {
  margin: 22px 0;
  padding: 15px 17px;
  border-radius: 11px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-text);
  font-size: 14.5px;
}

.callout strong {
  font-weight: 650;
}

footer {
  border-top: 1px solid var(--line);
}

footer .wrap {
  padding-top: 20px;
  padding-bottom: 28px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
}

footer a {
  color: inherit;
}

a {
  color: inherit;
}
