/* ManagedHorizons legal pages readability refresh */

:root {
  --legal-bg: #f4f7fb;
  --legal-surface: #ffffff;
  --legal-text: #172033;
  --legal-muted: #5c697c;
  --legal-border: #dce4ee;
  --legal-accent: #2457ff;
  --legal-accent-soft: #eef3ff;
  --legal-warning-bg: #fff8de;
  --legal-warning-border: #e7cf78;
  --legal-shadow: 0 18px 50px rgba(18, 31, 53, 0.08);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--legal-bg);
  color: var(--legal-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.legal-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 40px auto 64px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.logo {
  color: #0f1f38;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.btn,
.btn.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--legal-border);
  background: rgba(255, 255, 255, 0.92);
  color: #17324d;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1rem;
  line-height: 1.2;
}

.legal-card {
  background: var(--legal-surface);
  border: 1px solid var(--legal-border);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 52px);
  box-shadow: var(--legal-shadow);
}

.legal-card > *:first-child {
  margin-top: 0;
}

.legal-card h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.legal-card h2 {
  margin: 2.2rem 0 0.9rem;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f1f38;
  padding-top: 0.25rem;
}

.legal-card p,
.legal-card li,
.legal-card td,
.legal-card th {
  font-size: 1rem;
}

.legal-card p {
  margin: 0.85rem 0;
  color: var(--legal-text);
}

.legal-card strong {
  color: #12233f;
}

.legal-card ul,
.legal-card ol {
  margin: 0.8rem 0 1rem 1.35rem;
  padding: 0;
}

.legal-card li {
  margin: 0.45rem 0;
  padding-left: 0.15rem;
}

.legal-card a {
  color: var(--legal-accent);
  text-underline-offset: 0.18em;
}

.legal-summary {
  margin: 1.2rem 0 1.6rem;
  padding: 1rem 1.1rem;
  background: var(--legal-accent-soft);
  border: 1px solid #d8e4ff;
  border-radius: 16px;
  color: #19325f;
}

.legal-placeholder {
  margin: 1rem 0 1.25rem;
  padding: 0.95rem 1rem;
  background: var(--legal-warning-bg);
  border: 1px solid var(--legal-warning-border);
  border-radius: 14px;
}

.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--legal-border);
  border-radius: 16px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: #fff;
}

.legal-table thead th {
  background: #f7f9fc;
  color: #16304d;
  font-weight: 700;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--legal-border);
}

.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.legal-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 0;
}

.legal-footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--legal-border);
  background: #fff;
  color: #17324d;
  text-decoration: none;
  font-weight: 600;
}

.danger-card {
  border-color: #e8b7b7;
}

.danger-card h3 {
  color: #912626;
}

@media (max-width: 720px) {
  .legal-shell {
    width: min(100%, calc(100% - 20px));
    margin: 20px auto 42px;
  }

  .legal-header {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn.btn-secondary,
  .legal-footer-links a {
    width: 100%;
  }

  .legal-card {
    border-radius: 18px;
    padding: 20px 16px;
  }

  .legal-card h1 {
    font-size: 2rem;
  }

  .legal-card h2 {
    font-size: 1.5rem;
  }
}


/* ManagedHorizons responsive application pass v2 */

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

textarea,
input,
select,
button {
    max-width: 100%;
    box-sizing: border-box;
}

.modal {
    padding: 12px;
    overflow-y: auto;
}

.modal-card {
    width: min(900px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
}

@media (max-width: 900px) {

    .dashboard-layout,
    .app-layout {
        display: block !important;
    }

    .sidebar {
        width: 100% !important;
        position: relative !important;
    }

    .hero,
    .hero-layout,
    .checkout-layout,
    .support-layout,
    .template-editor-layout {
        grid-template-columns: 1fr !important;
    }

    .stats-grid,
    .dashboard-grid,
    .billing-grid,
    .admin-grid,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 600px) {

    .site-header,
    .navbar,
    nav {
        flex-wrap: wrap;
        height: auto !important;
    }

    .site-header {
        padding: 16px !important;
    }

    .site-header nav {
        width: 100%;
        gap: 10px;
        flex-wrap: wrap;
    }

    .stats-grid,
    .dashboard-grid,
    .billing-grid,
    .admin-grid,
    .feature-grid,
    .template-editor-layout,
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .dashboard-content,
    .admin-content,
    .container {
        width: 100%;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .modal-card,
    .card,
    .panel {
        width: 100%;
        max-width: 100%;
    }

    .modal-actions,
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .modal-actions button,
    .hero-actions a,
    .hero-actions button {
        width: 100%;
    }

    textarea {
        min-height: 180px;
    }
}
