/* Shared styles for the Slidz public pages (about, terms, privacy, support). Always light/white —
   even when the viewer's OS/browser prefers dark. Single source of truth for all four pages. */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light; /* keep form controls, scrollbars, etc. light even under a dark OS theme */
  --bg: #f5f4fb;
  --card: #ffffff;
  --border: #e8e6f2;
  --text: #16141f;
  --muted: #605c73;
  --accent: #6d4de0;
  --accent-2: #a855f7;
  --grad: linear-gradient(135deg, #6d4de0, #a855f7);
  --glow: radial-gradient(60% 100% at 50% 0%, rgba(147, 51, 234, 0.14), rgba(147, 51, 234, 0) 70%);
  --field: #fbfbfe;
  --field-border: #dcdae8;
  --ring: rgba(109, 77, 224, 0.18);
  --shadow: 0 18px 50px -20px rgba(80, 50, 180, 0.28);
  --ok: #1a7f5a;
  --err: #c0392b;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Soft accent glow behind the top of every page. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 520px;
  background: var(--glow);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}

.wrap.narrow { max-width: 640px; }

/* Brand pill */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}

.brand .dot {
  width: 11px;
  height: 11px;
  border-radius: 4px;
  background: var(--grad);
}

.narrow .brand { display: flex; justify-content: center; margin: 0 auto 20px; }

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 20px 0 8px;
  text-wrap: balance;
}

.narrow h1 { text-align: center; font-size: clamp(28px, 4.5vw, 36px); margin-top: 4px; }

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

.narrow .updated { text-align: center; }

/* Content card */
.card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px 34px 36px;
  box-shadow: var(--shadow);
  animation: rise 0.5s ease both;
}

.narrow .card { padding: 30px 30px 34px; }

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Section headings with a gradient marker */
h2 {
  position: relative;
  padding-left: 16px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 32px 0 10px;
}

h2:first-of-type { margin-top: 20px; }

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 1.05em;
  border-radius: 3px;
  background: var(--grad);
}

.narrow h1 + form, .narrow h1 { }

p, li { color: var(--text); font-size: 15.5px; }
.muted { color: var(--muted); }
strong { font-weight: 700; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: 6px;
  padding: 1px 6px;
}

/* Custom bullet lists */
ul { list-style: none; padding-left: 2px; margin: 12px 0; }

li { position: relative; padding-left: 26px; margin: 9px 0; }

li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--grad);
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

a:hover { border-bottom-color: var(--accent); }

/* Form (support page) */
label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 18px 0 6px;
}

label:first-of-type { margin-top: 0; }

.hint { color: var(--muted); font-size: 13.5px; margin: 0 0 8px; line-height: 1.55; }

input, textarea {
  width: 100%;
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--field-border);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

textarea { min-height: 140px; resize: vertical; }

.row { display: flex; gap: 14px; }
.row > div { flex: 1; }

button {
  margin-top: 22px;
  background: var(--grad);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, filter 0.15s ease;
}

button.full { width: 100%; }
button:hover { transform: translateY(-1px); filter: brightness(1.05); }
button:active { transform: none; }
button:disabled { opacity: 0.6; cursor: default; transform: none; filter: none; }

#status { margin: 14px 0 0; font-size: 14px; min-height: 20px; text-align: center; }
#status.ok { color: var(--ok); }
#status.err { color: var(--err); }

/* Footer */
footer {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 520px) {
  .wrap { padding: 40px 16px 64px; }
  .card { padding: 12px 22px 28px; }
  .narrow .card { padding: 24px 20px 28px; }
  .row { flex-direction: column; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  * { transition: none !important; }
}
