/* Shared look of the plain pages: Privacy Policy, Terms, Delete account,
   Support, Reset password. Same colours as the main site. */

:root {
  --brand-1: #7209b7;
  --brand-2: #f72585;
  --brand-3: #ff8e3c;
  --gradient: linear-gradient(135deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
  --bg: #fffaf7;
  --surface: #ffffff;
  --text: #1f1530;
  --muted: #5f5675;
  --line: #eadfea;
  --accent: #c3166f;
  --danger: #b3261e;
  --ok: #1b7a3e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #130c1f;
    --surface: #1f1535;
    --text: #f6effb;
    --muted: #b9aecd;
    --line: #34274f;
    --accent: #ff7ab8;
    --danger: #ff8a80;
    --ok: #7be3a1;
  }
}

* {
  box-sizing: border-box;
}

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

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

.bar {
  background: var(--gradient);
  color: #fff;
}

.bar__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo 2', 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand svg {
  width: 34px;
  height: 34px;
}

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}

h1 {
  font-family: 'Baloo 2', 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 6px;
}

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

h2 {
  font-family: 'Baloo 2', 'Poppins', sans-serif;
  font-size: 1.45rem;
  margin: 36px 0 8px;
}

h3 {
  font-size: 1.05rem;
  margin: 22px 0 4px;
}

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

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

li {
  margin: 4px 0;
}

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

.note {
  background: color-mix(in srgb, var(--brand-2) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand-2) 30%, var(--line));
  border-radius: 16px;
  padding: 14px 18px;
  margin: 18px 0;
}

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

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

th {
  color: var(--muted);
  font-weight: 600;
}

/* forms (delete account, reset password) */
label {
  display: block;
  font-weight: 600;
  margin: 14px 0 4px;
}

input[type='email'],
input[type='password'] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-2);
  outline-offset: 2px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
  font-weight: 400;
}

.check input {
  margin-top: 6px;
}

button.primary {
  width: 100%;
  margin-top: 18px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button.danger {
  background: var(--danger);
}

button[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.msg {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  display: none;
}

.msg.show {
  display: block;
}

.msg.error {
  background: color-mix(in srgb, var(--danger) 14%, var(--surface));
  color: var(--danger);
}

.msg.success {
  background: color-mix(in srgb, var(--ok) 14%, var(--surface));
  color: var(--ok);
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

footer a {
  margin: 0 8px;
}
