/*
 * Shared styling for the public legal / support pages under /legal/.
 *
 * These pages are loaded inside the Colour Try mobile app's WebView (and are
 * also linkable from a browser for the Play Store / App Store listings), so
 * the layout is single-column and phone-first. Keep them plain static HTML —
 * no JS, no auth, no SPA — so the WebView renders them instantly and an app
 * store reviewer can open the URL without a login.
 */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #2e2e33;
  padding: 20px 16px 40px;
  -webkit-text-size-adjust: 100%;
}

/* Widen the column on desktop so the page is readable outside the app too. */
.page {
  max-width: 720px;
  margin: 0 auto;
}

/* ---- Hero ------------------------------------------------------------- */

.hero {
  background: linear-gradient(135deg, #0061af 0%, #0080e8 100%);
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 24px;
  color: #fff;
}

.hero.center {
  text-align: center;
}

.hero h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero p {
  font-size: 14px;
  opacity: 0.88;
  line-height: 1.5;
}

.hero .meta {
  font-size: 12px;
  opacity: 0.8;
}

/* ---- Cards ------------------------------------------------------------ */

.card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(228, 228, 230, 1);
  padding: 20px 16px;
  margin-bottom: 16px;
}

/* FAQ cards lay their own padding out per row, so the card itself has none. */
.card.flush {
  padding: 0;
  overflow: hidden;
}

.card h2 {
  font-size: 15px;
  font-weight: 700;
  color: #0061af;
  margin-bottom: 10px;
}

.card p,
.card li {
  font-size: 13px;
  color: #4e4e55;
  line-height: 1.65;
  margin-bottom: 8px;
}

.card ul,
.card ol {
  padding-left: 18px;
}

.card li {
  margin-bottom: 6px;
}

.card p:last-child,
.card li:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #0061af;
  margin-bottom: 12px;
}

/* ---- Call-outs -------------------------------------------------------- */

.highlight,
.tip {
  background: #eef7ff;
  border-left: 3px solid #0061af;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 13px;
  color: #0061af;
  line-height: 1.55;
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  background: #e8f4ff;
  color: #0061af;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ---- Key/value blocks (used by the Privacy Policy) -------------------- */

.kv {
  margin-bottom: 12px;
}

.kv:last-child {
  margin-bottom: 0;
}

.kv .k {
  font-size: 13px;
  font-weight: 600;
  color: #2e2e33;
  margin-bottom: 3px;
}

.kv .v {
  font-size: 13px;
  color: #4e4e55;
  line-height: 1.6;
}

/* ---- FAQ rows (used by Help & Support) -------------------------------- */

.faq-item {
  padding: 16px;
  border-bottom: 1px solid rgba(228, 228, 230, 0.6);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-size: 14px;
  font-weight: 600;
  color: #2e2e33;
  margin-bottom: 6px;
}

.faq-a {
  font-size: 13px;
  color: #6b6b75;
  line-height: 1.55;
}

.steps {
  padding-left: 18px;
  margin: 6px 0 0;
}

.steps li {
  font-size: 13px;
  color: #6b6b75;
  line-height: 1.55;
  margin-bottom: 4px;
}

/* ---- Contact ---------------------------------------------------------- */

.contact-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(228, 228, 230, 0.6);
  gap: 12px;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-label {
  font-size: 12px;
  color: #9e9ea8;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 14px;
  font-weight: 600;
  color: #2e2e33;
  word-break: break-word;
}

.contact-box {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(228, 228, 230, 1);
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.contact-box p {
  font-size: 13px;
  color: #6b6b75;
  margin-bottom: 6px;
}

.contact-box a {
  color: #0061af;
  font-weight: 600;
  text-decoration: none;
}

/* ---- Index page links ------------------------------------------------- */

.link-row {
  display: block;
  padding: 16px;
  border-bottom: 1px solid rgba(228, 228, 230, 0.6);
  text-decoration: none;
  color: inherit;
}

.link-row:last-child {
  border-bottom: none;
}

.link-row .t {
  font-size: 14px;
  font-weight: 600;
  color: #0061af;
  margin-bottom: 4px;
}

.link-row .d {
  font-size: 13px;
  color: #6b6b75;
  line-height: 1.55;
}

/* ---- Footer ----------------------------------------------------------- */

.footer {
  text-align: center;
  font-size: 12px;
  color: #9e9ea8;
  line-height: 1.6;
  padding: 8px 4px 0;
}
