/* === TransportPay SPA Styles (исправленная версия) === */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --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;
  --gray-900: #111827;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--gray-800); background: var(--gray-50); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
.header { background: white; border-bottom: 1px solid var(--gray-200); padding: 16px 0; }
.header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.subtitle { color: var(--gray-500); font-size: 0.9rem; }
.nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-header { background: var(--gray-800); border-bottom: none; }
.admin-header .logo { color: white; }
.admin-header .btn-ghost { color: var(--gray-300); }
.admin-header .nav-active { color: white; border-bottom: 2px solid var(--primary); }

/* Buttons — touch-friendly baseline */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, opacity 0.15s;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  line-height: 1.3;
  min-height: 44px;
  min-width: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:focus { outline: none; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover:not(:disabled) { background: #15803d; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-ghost { background: transparent; color: var(--gray-600); border: 1px solid var(--gray-300); }
.btn-ghost:hover:not(:disabled) { background: var(--gray-100); }
.btn-small { padding: 8px 14px; font-size: 0.85rem; min-height: 36px; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; min-height: 48px; }
.btn-full { width: 100%; }

/* Main */
.main { padding: 32px 0; min-height: calc(100vh - 160px); }
.page { display: flex; flex-direction: column; min-height: 100vh; }

/* Tariffs */
.tariffs-section { margin-bottom: 32px; }
.tariffs-section h2 { margin-bottom: 16px; color: var(--gray-700); }
.tariffs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tariff-card {
  background: white; border: 2px solid var(--gray-200); border-radius: var(--radius);
  padding: 20px; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.tariff-card:hover, .tariff-card:focus-visible { border-color: var(--primary); box-shadow: var(--shadow-lg); outline: none; }
.tariff-card.selected { border-color: var(--primary); background: #eff6ff; }
.tariff-card h3 { margin-bottom: 8px; color: var(--gray-800); overflow-wrap: break-word; word-break: break-word; white-space: normal; min-width: 120px; }
.tariff-card .tariff-desc { color: var(--gray-500); font-size: 0.85rem; margin-bottom: 12px; }
.tariff-card .tariff-price { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.tariff-card .tariff-currency { font-size: 0.9rem; color: var(--gray-500); }

/* Form */
.form-section { background: white; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-section h2 { margin-bottom: 20px; color: var(--gray-700); }
.selected-tariff-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius); margin-bottom: 20px; flex-wrap: wrap; }
.selected-tariff-bar span { font-weight: 600; }
.selected-tariff-bar .btn { padding: 8px 14px; font-size: 0.85rem; min-height: 36px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.95rem; color: var(--gray-700); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300);
  border-radius: var(--radius); font-size: 1rem; font-family: inherit;
  min-height: 44px;
  -webkit-appearance: none; appearance: none;
  touch-action: manipulation;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.form-group .error { color: var(--danger); font-size: 0.85rem; display: block; min-height: 1.2em; }
.form-group small { color: var(--gray-500); font-size: 0.8rem; }

/* Checkboxes — кастомные, т.к. appearance:none убирает родную галочку */
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 400; padding: 8px 0; min-height: 44px; touch-action: manipulation; }
.checkbox-label input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  min-height: 0;
  padding: 0;
  border: 2px solid var(--gray-400);
  border-radius: 6px;
  background: #fff;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.checkbox-label input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 7px; top: 3px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-label input[type="checkbox"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }

/* Signature pad */
.signature-pad { border: 2px dashed var(--gray-300); border-radius: var(--radius); display: inline-block; position: relative; background: white; width: 100%; }
.signature-pad canvas { display: block; touch-action: none; cursor: crosshair; width: 100%; }
.signature-pad .btn { position: absolute; top: 6px; right: 6px; min-height: 36px; }

.total-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px; background: var(--gray-50); border-radius: var(--radius); margin: 20px 0; font-size: 1.1rem; border: 1px solid var(--gray-200); }
.total-label { font-weight: 600; color: var(--gray-600); }
.total-price { font-size: 1.8rem; font-weight: 700; color: var(--primary); }

/* Result */
.result-card { text-align: center; padding: 48px 32px; background: white; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 500px; margin: 0 auto; }
.result-icon { font-size: 4rem; margin-bottom: 16px; }
.result-card h2 { color: var(--success); margin-bottom: 12px; }
.result-number { font-size: 1.2rem; margin-bottom: 16px; }

/* Login */
.login-card { max-width: 400px; margin: 40px auto; background: white; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.login-card h2 { margin-bottom: 24px; }
.login-card .btn { width: 100%; margin-top: 8px; min-height: 44px; }
.login-card .btn-ghost { margin-top: 16px; }

/* Filters */
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: flex-end; }
.filter-input { padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius); font-size: 0.95rem; min-height: 44px; width: auto; background: white; }
.filter-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* Table */
.table-wrap { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--gray-200); font-size: 0.9rem; }
th { background: var(--gray-50); font-weight: 600; color: var(--gray-600); position: sticky; top: 0; }
tr:hover td { background: var(--gray-50); }
.status-badge { display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.status-new { background: #dbeafe; color: #1e40af; }
.status-in_review { background: #fef3c7; color: #92400e; }
.status-paid { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-canceled { background: var(--gray-200); color: var(--gray-600); }
.status-restored { background: #e0e7ff; color: #3730a3; }
.action-btn { padding: 8px 10px; font-size: 0.85rem; margin: 0 2px; min-height: 36px; min-width: 36px; }

/* App link (кнопка-ссылка в таблице) */
.app-link {
  background: transparent; border: none; color: var(--primary); cursor: pointer;
  font-weight: 500; padding: 4px 0; font-size: 0.9rem; text-decoration: underline;
  font-family: inherit;
}
.app-link:hover { color: var(--primary-hover); }
.app-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

/* Mobile application cards */
.app-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden;
  border: 1px solid var(--gray-200);
}
.app-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.app-card-number { font-weight: 600; color: var(--primary); }
.app-card-body { padding: 12px 16px; }
.app-card-row { padding: 4px 0; font-size: 0.9rem; line-height: 1.4; }
.app-card-row strong { color: var(--gray-600); margin-right: 6px; display: inline-block; min-width: 70px; }
.app-card-actions { padding: 12px 16px; border-top: 1px solid var(--gray-200); }

/* Pagination */
.pagination { display: flex; gap: 6px; margin-top: 16px; justify-content: center; flex-wrap: wrap; }
.pagination .btn { min-width: 44px; padding: 8px 12px; min-height: 40px; }
.pagination .active { background: var(--primary); color: white; border-color: var(--primary); }

/* Detail card */
.detail-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.detail-card h2, .detail-card h3 { margin-bottom: 16px; color: var(--gray-700); }
.detail-row { display: flex; padding: 10px 0; border-bottom: 1px solid var(--gray-100); gap: 12px; }
.detail-label { font-weight: 600; color: var(--gray-600); min-width: 180px; flex-shrink: 0; }
.detail-value { color: var(--gray-800); word-break: break-word; }
.detail-value img { max-width: 300px; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 4px; }
.status-change-section { margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--gray-200); }
.status-change-section select, .status-change-section input { margin-right: 8px; min-height: 44px; }

/* Loading */
.loading { text-align: center; padding: 40px; color: var(--gray-500); }

/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 14px 22px; border-radius: var(--radius); color: white; font-size: 0.9rem; box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease; max-width: 400px; }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--primary); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* QR Payment */
.qr-section { margin-top: 24px; }
.qr-card { text-align: center; padding: 32px; background: white; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 500px; margin: 0 auto; }
.qr-header { margin-bottom: 16px; }
.qr-icon { font-size: 3rem; display: block; margin-bottom: 8px; }
.qr-card h2 { color: var(--gray-700); margin-bottom: 8px; }
.qr-subtitle { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 24px; }
.qr-code-container { display: flex; justify-content: center; margin: 24px 0; }
.qr-code-container img { border: 2px solid var(--gray-200); border-radius: var(--radius); padding: 12px; background: white; max-width: 240px; width: 100%; }
.qr-details { text-align: left; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px; margin: 20px 0; }
.qr-detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-200); gap: 12px; }
.qr-detail-row:last-child { border-bottom: none; }
.qr-detail-label { font-weight: 600; color: var(--gray-600); }
.qr-detail-value { color: var(--gray-800); word-break: break-all; }
.qr-amount { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.qr-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.qr-hint { color: var(--gray-500); font-size: 0.85rem; margin-top: 16px; }
.footer { background: var(--gray-800); color: var(--gray-400); padding: 16px 0; text-align: center; font-size: 0.85rem; }

/* Tariff detail modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.hidden { display: none; }
.modal { position: relative; background: white; border-radius: var(--radius); padding: 28px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal h2 { margin-bottom: 16px; }
.modal .close-btn { position: absolute; top: 12px; right: 12px; min-height: 36px; min-width: 36px; }

/* Tariffs / templates tables */
.tariffs-table-wrap, .templates-table-wrap { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.tariffs-table-wrap table { min-width: 600px; }
.templates-table-wrap table { min-width: 650px; }

/* Template selector in public form */
.template-selector { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.template-selector h3 { margin-bottom: 12px; color: var(--gray-700); font-size: 1rem; }
.template-list { margin-bottom: 12px; }
.template-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: white; border: 1px solid var(--gray-200); border-radius: 6px; margin-bottom: 8px; cursor: pointer; transition: border-color 0.15s; }
.template-item:hover { border-color: var(--success); }
.template-item.selected { border-color: var(--success); background: #dcfce7; }
.template-item-name { font-weight: 500; color: var(--gray-800); flex: 1; }
.template-item-date { font-size: 0.8rem; color: var(--gray-500); }
.template-item-actions { display: flex; gap: 4px; }
.template-item-actions .btn { padding: 4px 10px; font-size: 0.8rem; min-height: 32px; }
.template-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Template dropdown */
.template-dropdown-wrap { display: flex !important; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.template-select { flex: 1; min-width: 200px; padding: 8px 12px; border: 1px solid var(--gray-300); border-radius: 6px; background: white; color: var(--gray-700); font-size: 0.9rem; cursor: pointer; min-height: 36px; }
.template-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; min-height: 32px; }
.template-dropdown-wrap .btn { display: inline-flex !important; align-items: center; gap: 4px; }
.template-dropdown-wrap .btn { display: inline-flex !important; align-items: center; gap: 4px; }

/* Admin nav tabs */
.admin-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--gray-200); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-tabs .tab { padding: 10px 18px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; font-weight: 500; color: var(--gray-500); min-height: 44px; display: flex; align-items: center; }
.admin-tabs .tab:hover { color: var(--primary); }
.admin-tabs .tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.admin-header-actions { display: flex; gap: 8px; align-items: center; }

/* === MOBILE RESPONSIVE === */
/* Tablet and below */
@media (max-width: 768px) {
  .header .container { flex-direction: column; text-align: center; }
  .nav { flex-wrap: wrap; justify-content: center; }
  .form-row { flex-direction: column; }
  .form-row .form-group { min-width: 100%; }
  .filters-bar { flex-direction: column; }
  .filter-input { width: 100%; }
  .total-bar { flex-direction: column; gap: 8px; text-align: center; }
  .detail-row { flex-direction: column; gap: 4px; }
  .detail-label { min-width: auto; }
  .tariffs-list { grid-template-columns: 1fr; }
  .admin-header-actions { flex-wrap: wrap; justify-content: center; }
}
/* Mobile phones */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .header { padding: 12px 0; }
  .logo { font-size: 1.3rem; }
  .subtitle { font-size: 0.85rem; }
  .main { padding: 20px 0; }
  .form-section { padding: 20px 16px; }
  .form-section h2 { font-size: 1.2rem; margin-bottom: 16px; }
  .tariffs-section h2 { font-size: 1.2rem; }
  .tariff-card { padding: 16px; }
  .tariff-card .tariff-price { font-size: 1.3rem; }
  .result-card { padding: 32px 20px; }
  .result-icon { font-size: 3rem; }
  .login-card { margin: 20px 12px; padding: 24px 16px; }
  .detail-card { padding: 16px; }
  .total-price { font-size: 1.5rem; }
  .selected-tariff-bar { padding: 12px; font-size: 0.9rem; }
  .toast-container { top: auto; bottom: 16px; right: 12px; left: 12px; }
  .toast { max-width: 100%; font-size: 0.85rem; }
  .admin-tabs { gap: 0; }
  .admin-tabs .tab { padding: 10px 14px; font-size: 0.9rem; }
  .footer { padding: 12px 0; font-size: 0.8rem; }
}
/* Very small phones */
@media (max-width: 360px) {
  .container { padding: 0 10px; }
  .logo { font-size: 1.15rem; }
  .form-section { padding: 16px 12px; }
  /* Prevent iOS zoom on focus */
  .form-group input, .form-group textarea, .form-group select { padding: 10px 12px; font-size: 16px; }
  .btn { font-size: 16px; }
  .filter-input { padding: 10px 12px; font-size: 16px; }
  .tariff-card { padding: 14px; }
}
/* Landscape phones — prevent excessive height */
@media (max-height: 500px) and (orientation: landscape) {
  .header { padding: 8px 0; }
  .main { padding: 12px 0; }
  .form-section { padding: 16px; }
  .form-group { margin-bottom: 10px; }
  .result-card { padding: 24px 20px; }
  .result-icon { font-size: 2.5rem; margin-bottom: 8px; }
}
/* Print */
@media print {
  .header, .nav, .footer, .btn, .filters-bar, .pagination, .admin-tabs, .status-change-section { display: none !important; }
  .main { padding: 0; min-height: auto; }
  body { background: white; color: black; }
  .form-section, .detail-card, .table-wrap { box-shadow: none; border: 1px solid #ccc; }
  table { min-width: auto; font-size: 10pt; }
  th, td { padding: 4px 8px; }
  .action-btn { display: none; }
}
/* Safe area for modern phones with notches */
@supports (padding: max(0px)) {
  .header, .footer { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .toast-container { right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); }
}

/* ================= Согласие на обработку персональных данных (ФЗ-152) ================= */
.consent-block {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--card, #f8f9fa);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
}
.consent-block .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.45;
}
.consent-block .checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--accent, #2563eb);
}
.legal-link {
  color: var(--accent, #2563eb);
  text-decoration: underline;
  cursor: pointer;
}
.legal-link:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* Модалка с юридическими текстами */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.legal-modal-card {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 720px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.legal-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.legal-tabs {
  display: flex;
  gap: 8px;
}
.legal-tab {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  padding: 7px 14px;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 14px;
}
.legal-tab.nav-active {
  background: var(--accent, #2563eb);
  color: #fff;
  border-color: var(--accent, #2563eb);
}
.legal-body {
  padding: 18px 20px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
}
.legal-text {
  white-space: normal;
  word-wrap: break-word;
}
.legal-warn {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  border-radius: 8px;
  font-size: 13px;
}
@media (max-width: 600px) {
  .legal-modal-head { flex-wrap: wrap; }
  .legal-tabs { flex: 1 1 100%; }
  .legal-tab { flex: 1; }
}
