/* ROW Ai — legal pages shared stylesheet */

:root {
  --bg: #ffffff;
  --bg-subtle: #f6f7f9;
  --text: #1a1c1e;
  --text-muted: #5b6169;
  --border: #e3e6ea;
  --accent: #2f6feb;
  --accent-soft: rgba(47, 111, 235, 0.08);
  --radius: 10px;
  --maxw: 780px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101215;
    --bg-subtle: #171a1f;
    --text: #e7e9ec;
    --text-muted: #a0a7b0;
    --border: #262a30;
    --accent: #7aa2f7;
    --accent-soft: rgba(122, 162, 247, 0.12);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

/* Header */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 15px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

/* Document body */

main {
  padding: 40px 0 64px;
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

h2 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 4px;
}

h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

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

.meta {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.meta span + span::before {
  content: "·";
  margin: 0 8px;
  color: var(--border);
}

.lede {
  font-size: 18px;
  color: var(--text-muted);
}

.callout {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 32px 0 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-title {
  margin: 0 0 8px;
  font-size: 16px;
}

/* Numbered steps */

ol.steps {
  margin: 0 0 16px;
  padding-left: 22px;
}

ol.steps li {
  margin-bottom: 8px;
}

/* Deletion request form */

.form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0 12px;
}

.form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.form label + input,
.form label + select,
.form label + textarea {
  margin-bottom: 10px;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
}

.form textarea {
  resize: vertical;
  min-height: 96px;
}

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

.form button {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 11px 18px;
  cursor: pointer;
  align-self: flex-start;
}

.form button:hover {
  filter: brightness(1.08);
}

.form-note {
  font-size: 14px;
  color: var(--text-muted);
}

/* Landing page cards */

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 32px 0;
}

.card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  background: var(--bg-subtle);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

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

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

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--text-muted);
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 26px;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
