/* ==========================================================================
   TOS.CSS - Fully Standalone Stylesheet for Terms of Service Page
   No dependency on style.css or home.css
   ========================================================================== */

/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
  --bg-base: #faf5ff;
  --bg-surface: #ffffff;
  --bg-elevated: #f4e8fd;
  --text-primary: #0f172a;
  --text-secondary: #6b21a8;
  --text-muted: #475569;
  --border-color: rgba(0, 0, 0, 0.15);
  --accent: #8d18e7;
  --radius-lg: 24px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 40px -10px rgba(141, 24, 231, 0.08);
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  font-weight: 300;
  color: var(--text-primary);
}

/* --- 2. PAGE WRAPPER & FROSTED GLASS CONTAINER --- */
.tos-page-wrapper {
  width: 100%;
  padding: 40px 24px 0px 24px;
  display: flex;
  justify-content: center;
}

.tos-container {
  width: 100%;
  max-width: 1000px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 0 0 1px var(--border-color);
  padding: 40px 32px;
  overflow: hidden;
}

/* --- 3. PAGE HEADER --- */
.tos-header {
  margin-bottom: 40px;
  text-align: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tos-header h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.tos-header .last-updated {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 400;
}



/* --- 7. DESKTOP ZOOM OPTIMIZATION --- */
@media (min-width: 769px) {
  .app-container {
    zoom: 0.95;
    /* Optional: Add a subtle transition if you want it to scale smoothly when resizing the window */
    transition: zoom 0.2s ease;
  }
}

/* ==========================================================================
   ABOUT.CSS - Standalone Stylesheet for About Us Page
   ========================================================================== */

/* --- GLOBAL VARIABLES (Matching Contact Page) --- */
:root {
  --bg-base: #faf5ff;
  --bg-surface: #ffffff;
  --bg-elevated: #f4e8fd;
  --text-primary: #0f172a;
  --text-secondary: #6b21a8;
  --text-muted: #475569;
  --border-color: rgba(0, 0, 0, 0.15);
  --accent: #8d18e7;
  --radius-lg: 24px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 40px -10px rgba(141, 24, 231, 0.08);
}

.about-page-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* --- HERO SECTION --- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 500px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.about-hero h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.about-hero h1 span {
  color: var(--accent);
  display: block;
}

.about-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.hero-image-container {
  position: relative;
}

.hero-image-container img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: block;
}

.signatures {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 24px;
}

.signature-block {
  text-align: center;
}

.signature-block img {
  height: 40px;
  margin-bottom: 8px;
}

.signature-block span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- STORY GRID (4 Columns) --- */
.story-grid-container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 0 1px var(--border-color);
  padding: 48px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.story-card .icon-wrapper {
  width: 64px;
  height: 64px;
  background: var(--bg-elevated);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
}

.story-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.story-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* --- WHY WE BUILT SECTION --- */
.why-we-built {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-we-built-content h2 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.why-we-built-content h2 span {
  color: var(--accent);
  display: block;
}

.why-we-built-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-item {
  display: flex;
  gap: 20px;
}

.feature-item .icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--bg-elevated);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- QUOTE BANNER --- */
.quote-banner {
  background: linear-gradient(135deg, #7e22ce, var(--accent));
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.quote-banner p {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.quote-icon {
  position: absolute;
  top: 40px;
  left: 60px;
  opacity: 0.2;
}

/* --- PRE-FOOTER CTA --- */
.pre-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--border-color);
}

.cta-left h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.cta-left p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.cta-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(0,0,0,0.08);
  border-right: 1px solid rgba(0,0,0,0.08);
  padding: 0 24px;
}

.cta-center img {
  height: 32px;
  margin-bottom: 16px;
}

.cta-center p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.2s;
}

.social-icons a:hover {
  background: var(--bg-elevated);
  color: var(--accent);
  border-color: var(--accent);
}

/* --- PRE-FOOTER RIGHT (Unified Card) --- */
.cta-right {
  display: flex;
  height: 100%;
}

.built-in-card {
  display: flex;
  width: 100%;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden; /* Clips the image to match the rounded card corners */
}

.built-in-text {
  display: flex;
  flex-direction: column;
  flex: 1; /* Pushes the image to the right */
}

.built-in-top {
  padding: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-weight: 600;
  color: var(--accent);
  font-size: 1.05rem;
  line-height: 1.4;
  flex: 1; /* Ensures top and bottom text sections are equal height */
  display: flex;
  align-items: center;
}

.built-in-bottom {
  padding: 20px;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
  flex: 1;
  display: flex;
  align-items: center;
}

.built-in-image {
  width: 130px; /* Increased from 40px so the image is visible */
  flex-shrink: 0;
}

/* This is the crucial part that was missing! */
.built-in-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Stretches the image perfectly without distortion */
  object-position: left center; /* Keeps the bridge aligned nicely */
  display: block;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pre-footer {
    grid-template-columns: 1fr;
  }
  .cta-center {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 32px 0;
  }
}

@media (max-width: 768px) {
  .about-hero, .why-we-built {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
  }
  .signatures {
    flex-direction: column;
    gap: 24px;
  }
  .about-hero h1, .why-we-built-content h2 {
    font-size: 2.8rem;
  }
  .feature-item {
    text-align: left;
  }
  .quote-banner p {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
  .story-grid-container {
    padding: 32px 24px;
  }
}

/* --- 8. MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  .tos-page-wrapper {
    padding: 24px 16px 60px 16px;
  }

  .tos-container {
    padding: 36px 24px;
    border-radius: 18px;
  }

  .tos-header h1 {
    font-size: 2.3rem;
  }

  .seo-text-block h2 {
    font-size: 1.35rem;
    margin-top: 36px;
  }

  .seo-text-block p,
  .seo-text-block li {
    font-size: 1rem;
    line-height: 1.75;
  }

  .seo-text-block ul {
    margin-left: 18px;
  }
}
/* Desktop Zoom Optimization */
@media (min-width: 769px) {
  .about-page-wrapper {
    zoom: 0.95;
    transition: zoom 0.2s ease;
  }
}
@media (max-width: 768px) {
  .about-page-wrapper {
    padding: 0 16px;
  }
  
  .about-hero, .why-we-built {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
  }
  .signatures {
    flex-direction: column;
    gap: 24px;
  }
  .about-hero h1, .why-we-built-content h2 {
    font-size: 2.8rem;
  }
  .feature-item {
    text-align: left;
  }
  .quote-banner p {
    font-size: 1.3rem;
  }
}