/* Snaqly Legal Pages — Common Styles */

:root {
  --color-bg: #f6f7f5;
  --color-text: #0f1512;
  --color-text-muted: #555f59;
  --color-accent: #14a155;
  --color-accent-light: #23be6b;
  --color-accent-deep: #0a5c31;
  --color-border: #e4e8e4;
  --color-card: #ffffff;
  --color-warning-bg: #fef3c7;
  --color-warning-border: #f0a028;
  --color-danger: #e2553b;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.legal-header {
  background: linear-gradient(135deg, #0a2e1b 0%, #10422a 100%);
  color: white;
  padding: 2rem 1.5rem;
  text-align: center;
}

.legal-header .brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.legal-header .brand::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent-light);
}

.legal-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}

.legal-header .meta {
  margin-top: 0.75rem;
  opacity: 0.72;
  font-size: 0.9rem;
}

/* Container */
.legal-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Table of Contents */
.toc {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.toc h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: none;
  padding-bottom: 0;
}

.toc ol {
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.toc li { margin-bottom: 0.4rem; }

.toc a {
  color: var(--color-accent);
  text-decoration: none;
}

.toc a:hover { text-decoration: underline; }

/* Sections */
section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 1rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

p { margin-bottom: 1rem; color: var(--color-text); }

p.intro {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }

li { margin-bottom: 0.4rem; }

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

a { color: var(--color-accent); text-decoration: underline; }

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: #eef1ee;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Notice / callout boxes */
.notice {
  background: var(--color-warning-bg);
  border-left: 4px solid var(--color-warning-border);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.notice strong { color: #92400e; }

.info-box {
  background: #e8f6ee;
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.danger-box {
  background: #fdece8;
  border-left: 4px solid var(--color-danger);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.danger-box strong { color: #9c2f1c; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

th { background: var(--color-card); font-weight: 700; }

/* Definition list */
dl { margin-bottom: 1rem; }
dt { font-weight: 700; margin-top: 0.75rem; }
dd { padding-left: 1.5rem; color: var(--color-text-muted); }

/* Contact card */
.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.contact-card h3 { margin-top: 0; }

/* Step list (deletion instructions) */
.steps { list-style: none; padding: 0; counter-reset: step; }

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.6rem 0 0.6rem 2.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

.steps li:last-child { border-bottom: none; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #e8f6ee;
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Button */
.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn:hover { background: var(--color-accent-deep); color: #fff; }

/* Hub cards */
.doc-list { list-style: none; padding: 0; display: grid; gap: 1rem; margin-top: 2rem; }

.doc-list a {
  display: block;
  padding: 1.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

.doc-list a:hover { border-color: var(--color-accent); }

.doc-list h3 { color: var(--color-accent); margin: 0 0 0.4rem; }

.doc-list p { margin: 0; color: var(--color-text-muted); }

/* Footer */
.legal-footer {
  background: #0f1512;
  color: white;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.legal-footer a {
  color: var(--color-accent-light);
  text-decoration: none;
  margin: 0 0.5rem;
}

.legal-footer a:hover { text-decoration: underline; }

.legal-footer .copyright {
  margin-top: 1rem;
  opacity: 0.6;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .legal-header { padding: 1.5rem 1rem; }
  .legal-header h1 { font-size: 1.5rem; }
  .legal-content { padding: 2rem 1rem 3rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.05rem; }
  table { font-size: 0.85rem; }
  th, td { padding: 0.5rem 0.6rem; }
}

/* Print */
@media print {
  .legal-header, .legal-footer, .toc { display: none; }
  body { font-size: 11pt; color: black; background: white; }
  h2 { page-break-after: avoid; }
  section { page-break-inside: avoid; }
}
