/* =========================================================
   GHCLI.com — Shared Legal / Company Pages
   File: /inc/legal-pages.css
   ========================================================= */

:root {
  --gh-bg: #f5f7fb;
  --gh-surface: #ffffff;
  --gh-surface-soft: #f8fafc;
  --gh-text: #111827;
  --gh-muted: #5f6b7a;
  --gh-line: #dfe5ee;
  --gh-primary: #2563eb;
  --gh-primary-dark: #1749b5;
  --gh-accent: #7c3aed;
  --gh-success: #047857;
  --gh-danger: #b42318;
  --gh-warning-bg: #fff8e7;
  --gh-radius-lg: 24px;
  --gh-radius-md: 16px;
  --gh-shadow: 0 20px 55px rgba(17, 24, 39, 0.08);
  --gh-shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--gh-bg);
}

.gh-legal {
  color: var(--gh-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.08), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(124, 58, 237, 0.08), transparent 26rem),
    var(--gh-bg);
  min-height: 70vh;
  padding: 34px 18px 76px;
}

.gh-legal a {
  color: var(--gh-primary);
  text-decoration: none;
}

.gh-legal a:hover {
  color: var(--gh-primary-dark);
}

.gh-legal__wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.gh-legal__breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--gh-muted);
  font-size: 14px;
}

.gh-legal__breadcrumbs svg {
  width: 16px;
  height: 16px;
}

.gh-legal__hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--gh-radius-lg);
  padding: clamp(32px, 6vw, 68px);
  color: #ffffff;
  background:
    linear-gradient(125deg, rgba(8, 18, 38, 0.98), rgba(30, 64, 175, 0.94) 57%, rgba(109, 40, 217, 0.92));
  box-shadow: var(--gh-shadow);
}

.gh-legal__hero::before,
.gh-legal__hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.gh-legal__hero::before {
  width: 330px;
  height: 330px;
  right: -115px;
  top: -155px;
  background: rgba(255, 255, 255, 0.10);
}

.gh-legal__hero::after {
  width: 180px;
  height: 180px;
  right: 15%;
  bottom: -115px;
  border: 34px solid rgba(255, 255, 255, 0.07);
}

.gh-legal__hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.gh-legal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gh-legal__eyebrow svg {
  width: 16px;
  height: 16px;
}

.gh-legal__hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.gh-legal__hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.75;
}

.gh-legal__updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.gh-legal__updated svg {
  width: 16px;
  height: 16px;
}

.gh-legal__layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-top: 28px;
}

.gh-legal__side {
  position: sticky;
  top: 24px;
  border: 1px solid var(--gh-line);
  border-radius: var(--gh-radius-md);
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--gh-shadow-soft);
}

.gh-legal__side-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gh-legal__side-title svg {
  width: 18px;
  height: 18px;
  color: var(--gh-primary);
}

.gh-legal__toc {
  display: grid;
  gap: 6px;
}

.gh-legal__toc a {
  display: block;
  padding: 10px 11px;
  border-radius: 10px;
  color: #3f4b5a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gh-legal__toc a:hover {
  color: var(--gh-primary);
  background: #edf4ff;
  transform: translateX(3px);
}

.gh-legal__content {
  min-width: 0;
}

.gh-legal__section {
  scroll-margin-top: 24px;
  margin-bottom: 18px;
  border: 1px solid var(--gh-line);
  border-radius: var(--gh-radius-md);
  padding: clamp(22px, 4vw, 34px);
  background: var(--gh-surface);
  box-shadow: var(--gh-shadow-soft);
}

.gh-legal__section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.gh-legal__icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gh-primary), var(--gh-accent));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.gh-legal__icon svg {
  width: 22px;
  height: 22px;
}

.gh-legal__section h2 {
  margin: 2px 0 0;
  color: var(--gh-text);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.gh-legal__section h3 {
  margin: 24px 0 10px;
  color: #1d2939;
  font-size: 18px;
  line-height: 1.4;
}

.gh-legal__section p,
.gh-legal__section li {
  color: var(--gh-muted);
  font-size: 16px;
  line-height: 1.82;
}

.gh-legal__section p {
  margin: 0 0 15px;
}

.gh-legal__section p:last-child {
  margin-bottom: 0;
}

.gh-legal__section ul,
.gh-legal__section ol {
  margin: 12px 0 16px;
  padding-left: 22px;
}

.gh-legal__section li + li {
  margin-top: 8px;
}

.gh-legal__section strong {
  color: #293241;
}

.gh-legal__notice {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--gh-primary);
  border-radius: 0 12px 12px 0;
  background: #eef5ff;
  color: #334155;
  line-height: 1.75;
}

.gh-legal__notice--warning {
  border-left-color: #d97706;
  background: var(--gh-warning-bg);
}

.gh-legal__contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  border-radius: var(--gh-radius-lg);
  padding: clamp(24px, 4vw, 36px);
  color: #ffffff;
  background: linear-gradient(125deg, #111827, #1e3a8a);
  box-shadow: var(--gh-shadow);
}

.gh-legal__contact-card h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(24px, 3.5vw, 36px);
}

.gh-legal__contact-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.gh-legal__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  color: #0f172a !important;
  background: #ffffff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gh-legal__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.gh-legal__button svg {
  width: 18px;
  height: 18px;
}

.gh-legal__page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.gh-legal__page-links a {
  padding: 9px 12px;
  border: 1px solid var(--gh-line);
  border-radius: 10px;
  color: #475467;
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.gh-legal__page-links a:hover {
  border-color: #b8c8e4;
  color: var(--gh-primary);
  background: #f8fbff;
}

/* Contact page */
.gh-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 22px;
}

.gh-contact-form {
  display: grid;
  gap: 16px;
}

.gh-contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gh-contact-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.gh-contact-form input,
.gh-contact-form textarea {
  width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: 12px;
  padding: 13px 14px;
  color: #101828;
  background: #ffffff;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gh-contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.gh-contact-form input:focus,
.gh-contact-form textarea:focus {
  border-color: var(--gh-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.gh-contact-form .gh-submit {
  justify-self: start;
  min-width: 160px;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--gh-primary), var(--gh-accent));
}

.gh-contact-form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.gh-alert {
  margin-bottom: 18px;
  border: 1px solid;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.gh-alert--success {
  border-color: #a7f3d0;
  color: #065f46;
  background: #ecfdf5;
}

.gh-alert--error {
  border-color: #fecaca;
  color: var(--gh-danger);
  background: #fff1f2;
}

.gh-contact-info {
  display: grid;
  align-content: start;
  gap: 14px;
}

.gh-contact-info__item {
  border: 1px solid var(--gh-line);
  border-radius: 14px;
  padding: 18px;
  background: var(--gh-surface-soft);
}

.gh-contact-info__item strong {
  display: block;
  margin-bottom: 6px;
  color: #1f2937;
}

.gh-contact-info__item p {
  margin: 0;
  font-size: 15px;
}

@media (max-width: 900px) {
  .gh-legal__layout {
    grid-template-columns: 1fr;
  }

  .gh-legal__side {
    position: static;
  }

  .gh-legal__toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gh-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gh-legal {
    padding: 20px 12px 52px;
  }

  .gh-legal__hero {
    border-radius: 18px;
    padding: 30px 22px;
  }

  .gh-legal__hero h1 {
    font-size: 38px;
  }

  .gh-legal__layout {
    gap: 18px;
    margin-top: 18px;
  }

  .gh-legal__section {
    border-radius: 14px;
    padding: 21px 18px;
  }

  .gh-legal__section-head {
    gap: 11px;
  }

  .gh-legal__icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .gh-legal__contact-card {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .gh-legal__toc {
    grid-template-columns: 1fr;
  }

  .gh-contact-form__row {
    grid-template-columns: 1fr;
  }
}
