/* ============================================
   VITALHUB IPSWICH - VISITOR SIGN IN
   iPad Optimized | Clean Modern Design
   ============================================ */

:root {
  /* VitalHub Brand Colors */
  --navy: #1e3a5f;
  --navy-dark: #152a45;
  --coral: #e8734a;
  --coral-dark: #d4623c;
  --teal: #2dd4bf;
  --purple: #7c3aed;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;

  /* Semantic */
  --success: #22c55e;
  --danger: #ef4444;

  /* Effects */
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --transition: all 0.2s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--gray-800);
  background: var(--gray-100);
  overflow: hidden;
  user-select: none;
}

/* Prevent zoom on input focus (iPad) */
input, select, textarea {
  font-size: 18px !important;
}

/* ============================================
   BACKGROUND IMAGE
   ============================================ */

.background-image {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* ============================================
   LOGO CONTAINER
   ============================================ */

.logo-container {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  text-align: center;
}

.logo-container img {
  max-height: 70px;
  max-width: 280px;
  object-fit: contain;
}

/* ============================================
   SETTINGS TRIGGER (Discrete bottom-right)
   ============================================ */

.settings-trigger {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  z-index: 200;
  cursor: pointer;
}

/* ============================================
   SCREENS
   ============================================ */

.screen {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 40px;
  padding-top: 140px; /* Space for logo */
}

.screen.active {
  display: flex;
}

/* ============================================
   WELCOME SCREEN
   ============================================ */

.welcome-container {
  text-align: center;
  padding: 60px 80px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  width: 100%;
}

.welcome-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.welcome-subtitle {
  font-size: 1.2rem;
  color: var(--gray-500);
  margin-bottom: 48px;
}

.welcome-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-welcome {
  display: block;
  width: 100%;
  padding: 22px 48px;
  font-size: 1.4rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  background: var(--navy);
  color: var(--white);
}

.btn-welcome:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
}

.btn-welcome:active {
  transform: translateY(0);
}

.btn-welcome-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-200);
}

.btn-welcome-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

/* ============================================
   FORM CONTAINER
   ============================================ */

.form-container {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 48px 56px;
  width: 100%;
  max-width: 520px;
}

.form-container.compact {
  max-width: 420px;
}

.screen-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: -0.02em;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
}

.form-group label .optional {
  font-weight: 400;
  color: var(--gray-400);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 18px 20px;
  font-size: 1.1rem;
  font-weight: 400;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-800);
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group input::placeholder {
  color: var(--gray-400);
}

/* ============================================
   FORM BUTTONS
   ============================================ */

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.btn-form {
  flex: 1;
  padding: 18px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-cancel {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-cancel:hover {
  background: var(--gray-200);
}

.btn-submit {
  background: var(--navy);
  color: var(--white);
}

.btn-submit:hover {
  background: var(--navy-dark);
}

.btn-submit:active,
.btn-cancel:active {
  transform: scale(0.98);
}

/* ============================================
   SEARCH CONTAINER
   ============================================ */

.search-container {
  margin-bottom: 24px;
}

.search-container input {
  width: 100%;
  padding: 18px 20px;
  font-size: 1.1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: var(--transition);
}

.search-container input:focus {
  outline: none;
  border-color: var(--navy);
}

/* ============================================
   VISITOR LIST (Sign Out)
   ============================================ */

.visitor-list {
  max-height: 360px;
  overflow-y: auto;
  margin-bottom: 24px;
}

.visitor-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
  border-left: 4px solid var(--teal);
}

.visitor-item:hover {
  background: var(--gray-100);
}

.visitor-item:active {
  background: var(--gray-200);
}

.visitor-item-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-800);
}

.visitor-item-time {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.visitor-list-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-400);
  font-size: 1.1rem;
}

/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}

.modal-card {
  background: var(--white);
  border-radius: 24px;
  padding: 48px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.modal-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--navy);
}

.modal-card p {
  font-size: 1.1rem;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.modal-actions {
  display: flex;
  gap: 16px;
}

/* ============================================
   SUCCESS SCREEN
   ============================================ */

#successScreen {
  background: rgba(255, 255, 255, 0.97);
}

.success-container {
  text-align: center;
  padding: 60px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
}

/* Animated Checkmark */
.success-checkmark {
  width: 100px;
  height: 100px;
  margin: 0 auto 32px;
  position: relative;
}

.checkmark-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--success);
  position: absolute;
  animation: scaleIn 0.3s ease;
}

.checkmark-stem {
  position: absolute;
  width: 6px;
  height: 36px;
  background: white;
  left: 52px;
  top: 34px;
  border-radius: 3px;
  transform: rotate(45deg);
  animation: checkStem 0.2s ease 0.3s forwards;
  opacity: 0;
}

.checkmark-kick {
  position: absolute;
  width: 6px;
  height: 20px;
  background: white;
  left: 36px;
  top: 50px;
  border-radius: 3px;
  transform: rotate(-45deg);
  animation: checkKick 0.2s ease 0.4s forwards;
  opacity: 0;
}

@keyframes scaleIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

@keyframes checkStem {
  0% { opacity: 0; height: 0; }
  100% { opacity: 1; height: 36px; }
}

@keyframes checkKick {
  0% { opacity: 0; height: 0; }
  100% { opacity: 1; height: 20px; }
}

.success-container h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.success-container p {
  font-size: 1.15rem;
  color: var(--gray-500);
}

/* ============================================
   SETTINGS SCREEN
   ============================================ */

.settings-container {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-200);
}

.settings-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.btn-text {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--coral);
  cursor: pointer;
  padding: 8px 16px;
}

.btn-text:hover {
  text-decoration: underline;
}

.settings-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 32px;
}

.settings-tab {
  padding: 16px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
}

.settings-tab:hover {
  color: var(--gray-700);
}

.settings-tab.active {
  color: var(--navy);
  border-bottom-color: var(--coral);
}

.settings-content {
  display: none;
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

.settings-content.active {
  display: block;
}

/* Evacuation List */
.evacuation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.evacuation-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-800);
}

.evacuation-count {
  font-size: 0.95rem;
  color: var(--white);
  background: var(--coral);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
}

.evacuation-list {
  max-height: 400px;
  overflow-y: auto;
}

.evacuation-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border-left: 4px solid var(--teal);
}

.evacuation-item-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-800);
}

.evacuation-item-details {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Setting Items */
.setting-item {
  margin-bottom: 24px;
}

.setting-item label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.setting-item input {
  width: calc(100% - 100px);
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-right: 12px;
}

.setting-item input:focus {
  outline: none;
  border-color: var(--navy);
}

.setting-description {
  color: var(--gray-500);
  margin-bottom: 24px;
}

/* Hosts List */
.hosts-list {
  margin-bottom: 24px;
}

.host-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.host-item span {
  font-size: 1rem;
  color: var(--gray-700);
}

.host-item button {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 8px;
  font-weight: 500;
}

.add-host-form {
  display: flex;
  gap: 12px;
}

.add-host-form input {
  flex: 1;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
}

.btn-small {
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-small:hover {
  background: var(--navy-dark);
}

.btn-small.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-small.btn-secondary:hover {
  background: var(--gray-200);
}

.btn-small.btn-upload {
  background: var(--teal);
  color: var(--white);
  cursor: pointer;
  display: inline-block;
}

.btn-small.btn-upload:hover {
  opacity: 0.9;
}

.btn-small.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-small.btn-danger:hover {
  opacity: 0.9;
}

/* Branding Section */
.branding-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-200);
}

.branding-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.branding-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 16px;
}

.branding-preview {
  width: 200px;
  height: 120px;
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}

.branding-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.branding-preview.background-preview {
  width: 100%;
  max-width: 400px;
  height: 150px;
}

.branding-preview.background-preview #backgroundPreview {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.preview-placeholder {
  font-size: 0.9rem;
  color: var(--gray-400);
  text-align: center;
}

.branding-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.upload-option {
  display: inline-block;
}

.url-option {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 250px;
}

.url-option input {
  flex: 1;
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
}

.url-option input:focus {
  outline: none;
  border-color: var(--navy);
}

/* ============================================
   ADMIN SCREEN
   ============================================ */

#adminScreen {
  padding-top: 40px;
}

.admin-container {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-200);
}

.admin-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.admin-filters {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
}

.filter-group input {
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
}

.filter-group input:focus {
  outline: none;
  border-color: var(--navy);
}

.admin-table-container {
  overflow: auto;
  flex: 1;
  padding: 0 32px 32px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.admin-table th,
.admin-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.admin-table th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--gray-50);
  position: sticky;
  top: 0;
}

.admin-table td {
  font-size: 0.95rem;
  color: var(--gray-700);
}

.admin-table tr:hover td {
  background: var(--gray-50);
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.signed-in {
  background: #dcfce7;
  color: #166534;
}

.status-badge.signed-out {
  background: var(--gray-100);
  color: var(--gray-500);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--navy);
  color: var(--white);
  padding: 18px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
}

.toast.error {
  background: var(--danger);
}

.toast.success {
  background: var(--success);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   LOADING
   ============================================ */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ============================================
   RESPONSIVE (iPad)
   ============================================ */

@media (max-width: 1024px) {
  .admin-container,
  .settings-container {
    max-width: 100%;
    border-radius: 0;
    max-height: 100vh;
  }

  .screen {
    padding: 20px;
    padding-top: 120px;
  }
}

@media (max-width: 768px) {
  html, body {
    font-size: 16px;
  }

  .logo-container {
    top: 24px;
  }

  .logo-container img {
    max-height: 50px;
  }

  .screen {
    padding-top: 100px;
  }

  .welcome-container {
    padding: 40px 32px;
  }

  .welcome-title {
    font-size: 2.4rem;
  }

  .form-container {
    padding: 32px 24px;
  }

  .screen-title {
    font-size: 1.8rem;
  }

  .settings-tabs {
    overflow-x: auto;
    padding: 0 16px;
  }

  .settings-tab {
    padding: 12px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .admin-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-table {
    font-size: 0.85rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 12px 8px;
  }
}

/* ============================================
   PWA INSTALL BANNER
   ============================================ */

.install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 3000;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.install-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 600px;
  width: 100%;
}

.install-banner-icon {
  flex-shrink: 0;
}

.install-banner-icon img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.install-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.install-banner-text strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
}

.install-banner-text span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.install-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.install-btn-dismiss {
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.install-btn-dismiss:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.install-btn-install {
  background: var(--navy);
  color: var(--white);
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.install-btn-install:hover {
  background: var(--navy-dark);
}

@media (max-width: 480px) {
  .install-banner {
    padding: 12px 16px;
  }

  .install-banner-content {
    flex-wrap: wrap;
  }

  .install-banner-icon img {
    width: 40px;
    height: 40px;
  }

  .install-banner-text {
    flex: 1;
    min-width: 150px;
  }

  .install-banner-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
  }
}

/* ============================================
   PRIVACY POLICY
   ============================================ */

.privacy-link {
  margin-top: 24px;
  text-align: center;
}

.privacy-link a {
  color: var(--gray-500);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.privacy-link a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.privacy-modal {
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.privacy-modal h2 {
  flex-shrink: 0;
}

.privacy-content {
  flex: 1;
  overflow-y: auto;
  text-align: left;
  padding: 16px 0;
  max-height: 400px;
}

.privacy-content p {
  margin-bottom: 16px;
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

.privacy-content p:last-child {
  margin-bottom: 0;
}

.privacy-modal .modal-actions {
  flex-shrink: 0;
  justify-content: center;
}
