/* legal.css — shared styling for PHAME static legal pages */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #5B21B6;
  --primary-light: #7C3AED;
  --text-dark: #111827;
  --text-muted: #4B5563;
  --white: #FFFFFF;
  --bg-page: #F8FAFC;
  --border-light: #E5E7EB;
  --radius-md: 20px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-page);
  color: var(--text-dark);
  overflow-x: hidden;
}

.app-container {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(16px + env(safe-area-inset-top)) 20px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 10;
}
.page-header h1 { font-size: 17px; font-weight: 700; }
.back-btn, .header-spacer {
  width: 40px; height: 40px; flex: 0 0 40px;
  border: none; border-radius: 50%;
  background: var(--bg-page); color: var(--text-dark);
  font-size: 15px; cursor: pointer;
}
.header-spacer { background: transparent; }

.legal {
  margin: 16px;
  padding: 22px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.legal .updated {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.legal h2 {
  font-size: 14px;
  font-weight: 700;
  margin: 20px 0 8px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.legal a { color: var(--primary-light); font-weight: 600; text-decoration: none; }
.legal a:hover { text-decoration: underline; }
