/* Zenimal legal site — shared styles.
   Light theme, designed for readability of long-form legal content.
   Brand: #0097A9 teal, Urbanist font (matches app + admin portal). */

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

body {
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: #ffffff;
  color: #2d2d2d;
  line-height: 1.7;
  padding: 40px 20px 80px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid #0097A9;
}
.site-header img {
  height: 32px;
  width: auto;
}
.site-header .site-name {
  font-size: 20px;
  font-weight: 700;
  color: #0097A9;
  letter-spacing: -0.01em;
}
.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
  font-size: 14px;
}
.site-header nav a {
  color: #666;
  text-decoration: none;
  font-weight: 500;
}
.site-header nav a:hover,
.site-header nav a.active {
  color: #0097A9;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #0097A9;
  margin-bottom: 8px;
  line-height: 1.3;
}

.effective-date,
.page-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 32px;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  color: #1a1a1a;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 6px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: #333;
}

p { margin-bottom: 14px; }
ul, ol { margin-bottom: 14px; padding-left: 24px; }
li { margin-bottom: 6px; }

a { color: #0097A9; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Tables (used in the legal copy) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px 0;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid #ddd;
}
th {
  background-color: #f5f5f5;
  font-weight: 600;
}

/* Callouts */
.highlight {
  background-color: #f0fafb;
  border-left: 4px solid #0097A9;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
}

.draft-notice {
  background-color: #fff3cd;
  border: 2px solid #ffc107;
  padding: 16px 20px;
  margin-bottom: 32px;
  border-radius: 4px;
  font-weight: 600;
  color: #856404;
}

/* Forms */
.form-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 24px;
  margin-top: 24px;
}

.form-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-card input[type="email"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 16px;
  background: #ffffff;
  color: #2d2d2d;
}
.form-card input[type="email"]:focus {
  outline: none;
  border-color: #0097A9;
  box-shadow: 0 0 0 3px rgba(0, 151, 169, 0.15);
}

.form-card .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.form-card .consent-row input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
}

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, background-color 0.15s;
}
.btn-primary {
  background: #0097A9;
  color: #ffffff;
}
.btn-primary:hover:not(:disabled) {
  background: #007e8d;
}
.btn-danger {
  background: #c62828;
  color: #ffffff;
}
.btn-danger:hover:not(:disabled) {
  background: #a61f1f;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Status messages */
.status {
  padding: 14px 18px;
  border-radius: 6px;
  margin-top: 16px;
  font-weight: 500;
}
.status.success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #1b5e20; }
.status.error { background: #fdecea; border: 1px solid #f5c6cb; color: #721c24; }
.status.info { background: #e3f2fd; border: 1px solid #90caf9; color: #0d47a1; }

/* Footer */
footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: #888;
  text-align: center;
}
footer a { color: #0097A9; }

.hidden { display: none !important; }

/* Tile grid for the landing page */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.tile {
  display: block;
  padding: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.tile:hover {
  border-color: #0097A9;
  box-shadow: 0 4px 12px rgba(0, 151, 169, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
}
.tile h3 {
  margin-top: 0;
  color: #0097A9;
}
.tile p {
  color: #666;
  margin-bottom: 0;
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  body { padding: 24px 16px 60px; }
  h1 { font-size: 1.6rem; }
  .site-header { flex-wrap: wrap; }
  .site-header nav { margin-left: 0; width: 100%; margin-top: 12px; }
}
