/* ==========================================================================
   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;
  gap: 32px;
  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;
}

/* --- 4. CONTENT TYPOGRAPHY --- */
.seo-text-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 44px 0 16px 0;
  letter-spacing: -0.02em;
}

.seo-text-block h2:first-of-type {
  margin-top: 24px;
}

.seo-text-block p {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 400;
}

.seo-text-block strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* --- 5. LISTS & DIVIDERS --- */
.seo-text-block ul {
  margin: 12px 0 28px 24px;
  padding: 0;
  list-style-type: disc;
}

.seo-text-block li {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 6px;
}

.seo-text-block li::marker {
  color: var(--accent);
}

.tos-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 40px 0;
}

/* --- 6. LINKS --- */
.seo-text-block a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

.seo-text-block a:hover {
  opacity: 0.85;
  text-decoration: underline;
}
.toast-wrapper {
  display: none;
}

/* --- 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;
  }
}

/* --- 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;
  }
}