/* =========================================================
   Gemslinks Service Terms Pages
   Generic stylesheet for service-specific terms pages
   File: /css/service-terms.css
========================================================= */

:root {
  --terms-bg: #f5f7fb;
  --terms-surface: #ffffff;
  --terms-surface-soft: #f8fafc;
  --terms-text: #1f2937;
  --terms-muted: #64748b;
  --terms-heading: #0f172a;
  --terms-line: #e2e8f0;
  --terms-accent: #1d4ed8;
  --terms-accent-dark: #1e3a8a;
  --terms-accent-soft: #eff6ff;
  --terms-warning-bg: #fff7ed;
  --terms-warning-line: #fed7aa;
  --terms-warning-text: #9a3412;
  --terms-radius-lg: 24px;
  --terms-radius-md: 16px;
  --terms-radius-sm: 10px;
  --terms-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --terms-max-width: 1180px;
}

/* Page base */

.terms-page {
  min-height: 100vh;
  background: var(--terms-bg);
  color: var(--terms-text);
  line-height: 1.75;
  font-family: inherit;
}

.terms-container {
  width: min(var(--terms-max-width), calc(100% - 40px));
  margin: 0 auto;
}

/* Hero */

.terms-hero {
  padding: 64px 0 46px;
  background:
    radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.16),
      transparent 34%
    ),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #2563eb 100%);
  color: #ffffff;
}

.terms-hero .terms-container {
  max-width: 1180px;
}

.terms-kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.terms-hero h1 {
  max-width: 1080px;
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: #ffffff;
  font-family: inherit;
}

.terms-lead {
  max-width: 980px;
  margin: 24px 0 0;
  font-size: 1.08rem;
  color: #dbeafe;
}

.terms-meta-box {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid rgba(219, 234, 254, 0.32);
  border-radius: var(--terms-radius-md);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.terms-meta-box p {
  margin: 0;
  color: #eff6ff;
  font-size: 0.95rem;
}

.terms-meta-box strong {
  color: #ffffff;
}

/* Layout */

.terms-content {
  padding: 54px 0 80px;
}

.terms-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* Sidebar */

.terms-sidebar {
  position: sticky;
  top: 24px;
}

.terms-sidebar-inner {
  padding: 24px;
  border: 1px solid var(--terms-line);
  border-radius: var(--terms-radius-lg);
  background: var(--terms-surface);
  box-shadow: var(--terms-shadow);
}

.terms-sidebar-title {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terms-heading);
  font-family: inherit;
}

.terms-sidebar ol {
  margin: 0;
  padding-left: 18px;
}

.terms-sidebar li {
  margin: 8px 0;
  color: var(--terms-muted);
  font-size: 0.92rem;
}

.terms-sidebar a {
  color: var(--terms-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.terms-sidebar a:hover,
.terms-sidebar a:focus {
  color: var(--terms-accent);
}

/* Article */

.terms-article {
  padding: 42px;
  border: 1px solid var(--terms-line);
  border-radius: var(--terms-radius-lg);
  background: var(--terms-surface);
  box-shadow: var(--terms-shadow);
}

.terms-article p {
  margin: 0 0 16px;
}

.terms-article p:last-child {
  margin-bottom: 0;
}

.terms-article a {
  color: var(--terms-accent);
}

.terms-article a:hover,
.terms-article a:focus {
  color: var(--terms-accent-dark);
}

.terms-section {
  scroll-margin-top: 32px;
  padding-top: 34px;
  margin-top: 34px;
  border-top: 1px solid var(--terms-line);
}

.terms-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.terms-section h2 {
  margin: 0 0 18px;
  color: var(--terms-heading);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-family: inherit;
}

/* Lists / bullet points */

.terms-section ul {
  margin: 14px 0 24px;
  padding-left: 0;
  list-style: none;
}

.terms-section li {
  position: relative;
  margin: 9px 0;
  padding-left: 24px;
  line-height: 1.65;
}

.terms-section li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terms-accent);
}

/* Notice and special boxes */

.terms-notice {
  padding: 18px 20px;
  margin-bottom: 34px;
  border: 1px solid var(--terms-warning-line);
  border-radius: var(--terms-radius-md);
  background: var(--terms-warning-bg);
  color: var(--terms-warning-text);
}

.terms-notice p {
  margin: 0;
}

.terms-confirmation-box {
  margin: 18px 0 22px;
  padding: 22px;
  border: 1px solid #bfdbfe;
  border-radius: var(--terms-radius-md);
  background: var(--terms-accent-soft);
}

.terms-confirmation-box p {
  margin: 0;
  color: var(--terms-heading);
  font-weight: 700;
}

/* Responsive */

@media (max-width: 960px) {
  .terms-layout {
    grid-template-columns: 1fr;
  }

  .terms-sidebar {
    position: static;
  }

  .terms-sidebar-inner {
    box-shadow: none;
  }

  .terms-sidebar ol {
    columns: 2;
    column-gap: 28px;
  }
}

@media (max-width: 720px) {
  .terms-container {
    width: min(100% - 28px, var(--terms-max-width));
  }

  .terms-hero {
    padding: 56px 0 36px;
  }

  .terms-hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .terms-lead {
    font-size: 1rem;
  }

  .terms-content {
    padding: 32px 0 56px;
  }

  .terms-article {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .terms-sidebar-inner {
    padding: 20px;
    border-radius: 18px;
  }

  .terms-sidebar ol {
    columns: 1;
  }

  .terms-meta-box {
    display: block;
  }

  .terms-meta-box p + p {
    margin-top: 6px;
  }
}

@media (max-width: 480px) {
  .terms-hero h1 {
    font-size: 2rem;
  }

  .terms-section {
    padding-top: 28px;
    margin-top: 28px;
  }

  .terms-section h2 {
    font-size: 1.3rem;
  }
}
