/* ========================================
   LEGAL PAGES – SHARED STYLES
   Privacy Policy · Enterprise Terms of Service
   Requires the CSS variables defined in styles.css :root
   ======================================== */

/* Hero */
.legal-hero {
  padding: 120px 6% 64px;
  background: var(--navy);
  position: relative;
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 60% at 60% 50%,
    rgba(10, 124, 110, 0.1) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.legal-hero .page-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 0.9rem;
}
.legal-hero h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.legal-hero .legal-date {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Content Wrapper */
.legal-content {
  background: var(--off-white);
  padding: 64px 6%;
}
.legal-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem 3.5rem;
}

/* Intro paragraph(s) */
.legal-intro {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.legal-intro p {
  margin-bottom: 0.75rem;
}
.legal-intro p:last-child {
  margin-bottom: 0;
}
.legal-intro strong {
  color: var(--text);
}

/* Sections */
.legal-section {
  margin-bottom: 2.5rem;
}
.legal-section:last-child {
  margin-bottom: 0;
}
.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--teal-pale);
}
.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.legal-section p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.legal-section p:last-child {
  margin-bottom: 0;
}
.legal-section strong {
  color: var(--text);
}
.legal-section a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}
.legal-section a:hover {
  text-decoration: underline;
}

/* Lists */
.legal-section ul,
.legal-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-section li {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 0.35rem;
}
.legal-section li strong {
  color: var(--text);
}

/* Info box */
.legal-infobox {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 1rem 0;
}
.legal-infobox p {
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}
.legal-infobox p:last-child {
  margin-bottom: 0;
}
.legal-infobox a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}
.legal-infobox a:hover {
  text-decoration: underline;
}

/* Table */
.legal-table-wrap {
  overflow-x: auto;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.legal-table thead {
  background: var(--navy);
}
.legal-table th {
  text-align: left;
  padding: 0.85rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.legal-table td {
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.legal-table tbody tr:last-child td {
  border-bottom: none;
}
.legal-table tbody tr:nth-child(even) {
  background: var(--off-white);
}

/* Footer note */
.legal-footer-note {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* Contact box accent */
.legal-contact {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.legal-contact h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.legal-contact p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.legal-contact a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}
.legal-contact a:hover {
  text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .legal-card {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }
  .legal-content {
    padding: 48px 5%;
  }
  .legal-table {
    font-size: 0.82rem;
  }
  .legal-table th,
  .legal-table td {
    padding: 0.6rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .legal-card {
    padding: 1.5rem 1.15rem;
  }
  .legal-content {
    padding: 32px 4%;
  }
}

/* Cross-site CTA — the forms live on cubiqcloud.com because this site is
   static and cannot hold an API token. */
.legal-cta {
  background: #fff;
  border: 1px solid rgba(13, 33, 55, 0.12);
  border-radius: 14px;
  padding: 1.75rem;
  margin: 2rem 0;
  text-align: center;
}

.legal-cta h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.legal-cta p {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  opacity: 0.8;
}
