/* ==========================================================================
   Company Pages (About & Terms of Policy) Styles - Arcix
   Fully Compatible with Arcix Dark & Light Themes
   ========================================================================== */

/* Page Wrapper */
.company-page {
  position: relative;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 130px 24px 90px;
  background-color: var(--bg);
  overflow: hidden;
}

/* Subtle Ambient Glow */
.ambient-glow {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

html.light .ambient-glow {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.035) 0%, rgba(0, 0, 0, 0.01) 45%, transparent 70%);
}

/* Main Container */
.company-container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

/* Header Section */
.company-header {
  text-align: center;
  margin-bottom: 52px;
}

.company-header .badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

html.light .company-header .badge {
  background: rgba(0, 0, 0, 0.04);
}

.page-title {
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0 0 14px;
  line-height: 1.15;
}

.page-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   About Page Components
   ========================================================================== */

/* Story Showcase Card */
.story-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 40px;
  margin-bottom: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.story-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}

.story-card p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 18px;
}

.story-card p:last-child {
  margin-bottom: 0;
}

/* Stats Metric Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  width: 100%;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: clamp(32px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  margin: 0;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  width: 100%;
}

.value-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
}

.value-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--fg);
  margin-bottom: 20px;
}

.value-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.value-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.value-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Mission Contact Callout */
.contact-callout {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.contact-callout h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
}

.contact-callout p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
}

.contact-email-link:hover {
  opacity: 0.85;
}

/* ==========================================================================
   Terms of Policy Page Components
   ========================================================================== */

.terms-wrapper {
  width: 100%;
}

.terms-card,
.terms-section {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s ease;
}

.terms-card:hover,
.terms-section:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.terms-item {
  margin-bottom: 38px;
}

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

.terms-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.section-number {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--secondary);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 6px;
}

.terms-card h2,
.terms-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
  letter-spacing: -0.015em;
}

.terms-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin: 24px 0 12px;
  letter-spacing: -0.01em;
}

.terms-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin: 20px 0 10px;
}

.terms-card p,
.terms-section p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

.terms-card p:last-child,
.terms-section p:last-child {
  margin-bottom: 0;
}

/* Metadata Grid */
.terms-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 24px;
}

.terms-meta-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 13.5px;
}

.terms-meta-label {
  font-weight: 600;
  color: var(--fg);
}

.terms-meta-val {
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
}

.terms-meta-val a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Lists */
.terms-ol {
  margin: 12px 0 16px 20px;
  padding: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.terms-ol > li {
  margin-bottom: 12px;
}

.terms-ol > li:last-child {
  margin-bottom: 0;
}

.terms-ol strong,
.terms-ul strong,
.terms-sublist strong,
.terms-list strong {
  color: var(--fg);
}

.terms-sublist {
  margin: 8px 0 10px 20px;
  padding: 0;
  list-style-type: disc;
}

.terms-sublist li {
  margin-bottom: 6px;
  color: var(--muted);
  line-height: 1.65;
}

.terms-list {
  margin: 12px 0 16px 20px;
  padding: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.terms-list li {
  margin-bottom: 8px;
}

/* Important Policy Notice Box */
.policy-alert {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--fg);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.6;
}

.policy-alert-warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(245, 158, 11, 0.2);
}

html.light .policy-alert {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
  border-left-color: #111;
}

html.light .policy-alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: #d97706;
  border-color: rgba(217, 119, 6, 0.25);
}

/* Clickwrap Quote */
.terms-quote {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--fg);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 14px 0;
  font-style: italic;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.65;
}

.terms-card code {
  background: var(--secondary);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: 'DM Mono', monospace;
  font-size: 12.5px;
  color: var(--fg);
}

/* Evidentiary Table */
.terms-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}

.terms-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.terms-table th {
  background: var(--secondary);
  color: var(--fg);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.terms-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  line-height: 1.65;
  vertical-align: top;
}

.terms-table tr:last-child td {
  border-bottom: none;
}

.terms-table td strong {
  color: var(--fg);
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .stats-grid,
  .values-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .story-card,
  .terms-card,
  .terms-section {
    padding: 30px 24px;
  }
}

@media (max-width: 600px) {
  .company-page {
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .terms-meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 16px;
  }

  .story-card h2,
  .terms-card h2,
  .terms-section h2 {
    font-size: 19px;
  }
}
