/* ==========================================================================
   TERMS OF USE PAGE STYLES
   Terms page with terms- prefix
   ========================================================================== */

/* --------------------------------------------------------------------------
   Terms Hero
   -------------------------------------------------------------------------- */
.terms-hero {
  position: relative;
  background: var(--midnight-black);
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

/* Decorative SVG Background */
.terms-hero-decor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.terms-hero-decor svg {
  width: 100%;
  height: 100%;
  stroke: var(--text-primary);
}

[data-theme="light"] .terms-hero-decor {
  opacity: 0.06;
}

.terms-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.terms-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 2px;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--harrigan-gold);
  margin-bottom: 1.5rem;
}

.terms-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--harrigan-gold);
  fill: none;
}

.terms-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.terms-hero-description {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
}

.terms-hero-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.terms-hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terms-hero-meta svg {
  width: 16px;
  height: 16px;
  stroke: var(--harrigan-gold);
  fill: none;
}

/* --------------------------------------------------------------------------
   Terms Content Layout
   -------------------------------------------------------------------------- */
.terms-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* --------------------------------------------------------------------------
   Table of Contents
   -------------------------------------------------------------------------- */
.terms-toc {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.terms-toc-title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--harrigan-gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terms-toc-title svg {
  width: 18px;
  height: 18px;
  stroke: var(--harrigan-gold);
  fill: none;
}

.terms-toc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.5rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.terms-toc-list li {
  margin: 0;
}

.terms-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.terms-toc-list a:hover {
  color: var(--harrigan-gold);
}

.terms-toc-list .toc-number {
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--harrigan-gold);
  min-width: 1.5rem;
}

/* --------------------------------------------------------------------------
   Important Notice Box
   -------------------------------------------------------------------------- */
.terms-important {
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.terms-important-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.terms-important-header svg {
  width: 22px;
  height: 22px;
  stroke: var(--harrigan-gold);
  fill: none;
  flex-shrink: 0;
}

.terms-important-header strong {
  font-family: var(--font-headline);
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--harrigan-gold);
}

.terms-important p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Legal Sections (uses content-section from content.css as base)
   -------------------------------------------------------------------------- */
.terms-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.terms-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.terms-section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.terms-section-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--harrigan-gold);
  line-height: 1;
  opacity: 0.8;
}

.terms-section h2 {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin: 0;
}

/* Subsection headings */
.terms-section h3 {
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 1rem;
}

/* --------------------------------------------------------------------------
   Prohibited List
   -------------------------------------------------------------------------- */
.terms-prohibited-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.terms-prohibited-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.terms-prohibited-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 0.875rem;
  color: #dc3545;
  font-weight: 700;
}

/* Permitted list */
.terms-permitted-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.terms-permitted-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.terms-permitted-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 0.875rem;
  color: #28a745;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Contact Box
   -------------------------------------------------------------------------- */
.terms-contact {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.terms-contact h3 {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.terms-contact p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.terms-contact a {
  color: var(--harrigan-gold);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.terms-contact a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Light Theme Overrides
   -------------------------------------------------------------------------- */
[data-theme="light"] .terms-hero {
  background: var(--smoke-white);
}

[data-theme="light"] .terms-toc {
  background: var(--bg-tertiary);
}

[data-theme="light"] .terms-important {
  background: rgba(201, 162, 39, 0.06);
  border-color: rgba(201, 162, 39, 0.2);
}

[data-theme="light"] .terms-contact {
  background: var(--bg-tertiary);
}

/* --------------------------------------------------------------------------
   Responsive Styles
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .terms-hero {
    padding: 5rem 1rem 3rem;
  }

  .terms-hero h1 {
    font-size: 2.25rem;
  }

  .terms-hero-meta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .terms-content {
    padding: 2.5rem 1rem;
  }

  .terms-toc {
    padding: 1.5rem;
  }

  .terms-toc-list {
    grid-template-columns: 1fr;
  }

  .terms-section-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .terms-section-number {
    font-size: 2rem;
  }

  .terms-section h2 {
    font-size: 1.25rem;
  }

  .terms-hero-decor {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 480px) {
  .terms-hero {
    padding: 4.5rem 1rem 2.5rem;
  }

  .terms-important {
    padding: 1.25rem;
  }

  .terms-contact {
    padding: 1.5rem;
  }
}
