/* Posely Legal Pages — shared stylesheet
 * Sober, professional, accessible. Designed for App Store / Google Play reviewers
 * and end users opening links from inside the app.
 */

:root {
  --primary: #1B4F72;
  --primary-dark: #0A2A44;
  --primary-light: #2C6A9B;
  --accent: #27AE60;
  --text: #1F2937;
  --text-muted: #4B5563;
  --text-faint: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --border: #E5E7EB;
  --max-width: 720px;
}

* { box-sizing: border-box; }

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* Header with Posely brand */
header.brand {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 32px;
}

header.brand a.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.5px;
}

header.brand a.logo .dot {
  color: var(--accent);
  font-size: 22px;
}

header.brand .tagline {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-faint);
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* Document title */
h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 8px 0 8px;
  color: var(--primary-dark);
  letter-spacing: -0.6px;
}

.meta {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0 0 32px;
}

.meta strong { color: var(--text-muted); font-weight: 500; }

/* Content typography */
h2 {
  font-size: 20px;
  margin: 36px 0 12px;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
}

h3 {
  font-size: 16px;
  margin: 24px 0 8px;
  color: var(--text);
  font-weight: 600;
}

p { margin: 0 0 14px; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }

a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-dark); }

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

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  background: var(--bg-alt);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--primary-dark);
}

/* Callout boxes */
.callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--primary);
  padding: 16px 18px;
  margin: 20px 0;
  border-radius: 4px;
  font-size: 15px;
}

.callout.warn { border-left-color: #D97706; }
.callout.warn strong { color: #92400E; }

/* Definition lists for data tables */
.data-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0 24px;
}

.data-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.data-row:last-child { border-bottom: none; }
.data-row > div { padding: 12px 16px; font-size: 14px; }
.data-row > div:first-child {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 540px) {
  .data-row { grid-template-columns: 1fr; }
  .data-row > div:first-child { border-bottom: 1px solid var(--border); }
}

/* Footer */
footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

footer nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-right: 16px;
}

footer nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Step list (used on delete-account and support pages) */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 16px 12px 52px;
  background: var(--bg-alt);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 15px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Print friendliness */
@media print {
  .wrap { max-width: none; padding: 0; }
  header.brand, footer { border-color: #000; }
  a { color: #000; }
}
