/* ═══════════════════════════════════════════════════════════════
   DineXpro Landing Page — styles.css
   Clean, modern SaaS style. Mobile-first.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --color-primary: #E65100;
  --color-primary-hover: #BF360C;
  --color-primary-light: rgba(230, 81, 0, 0.06);
  --color-surface: #ffffff;
  --color-surface-alt: #f8f9fa;
  --color-text: #1a1a2e;
  --color-text-secondary: #64648c;
  --color-border: #e5e5ef;
  --color-white: #ffffff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);

  --max-width: 1120px;
  --nav-height: 64px;
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--color-surface);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.btn--block {
  width: 100%;
}

/* ═══════════════════════ NAV ═══════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav--scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.nav__logo {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.nav__logo--sm {
  width: 28px;
  height: 28px;
  font-size: 14px;
  border-radius: 8px;
}

.nav__name {
  letter-spacing: -0.3px;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav__links a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.nav__links a:not(.btn):hover {
  color: var(--color-primary);
}

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.nav__toggle:hover {
  background: var(--color-surface-alt);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--color-border);
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.15s;
}

.nav__mobile a:not(.btn):hover {
  color: var(--color-primary);
}

.nav__mobile .btn {
  margin-top: 8px;
}

/* ═══════════════════════ HERO ═══════════════════════ */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(230, 81, 0, 0.05) 0%, transparent 100%);
}

.hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero__subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════ SECTIONS ═══════════════════ */
.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--color-surface-alt);
}

.section__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* ═══════════════════ STEPS ═══════════════════ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.step {
  text-align: center;
  padding: 36px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step__icon {
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1;
}

.step__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.step__text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ═══════════════════ FEATURES ═══════════════════ */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature {
  padding: 32px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section--alt .feature {
  background: var(--color-white);
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature__icon {
  font-size: 32px;
  margin-bottom: 14px;
  line-height: 1;
}

.feature__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.feature__text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ═══════════════════ TRUST ═══════════════════ */
.trust {
  text-align: center;
}

.trust__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  align-items: center;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.trust__label {
  font-weight: 600;
  color: var(--color-text);
  min-width: 80px;
  text-align: right;
}

.trust__value {
  color: var(--color-text-secondary);
}

.trust__link {
  color: var(--color-primary);
  transition: opacity 0.2s;
}

.trust__link:hover {
  opacity: 0.8;
}

.trust__badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}

/* ═══════════════════ CTA ═══════════════════ */
.cta {
  text-align: center;
  padding: 80px 0;
}

.cta__title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}

.cta__subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}

.footer__company {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.footer__meta {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--color-text-secondary);
  opacity: 0.8;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--color-primary);
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */

/* Tablet+ */
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .trust__details {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    padding: 160px 0 100px;
  }

  .legal-hero {
    padding-top: 140px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES — Privacy Policy & Terms of Service
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.legal-hero {
  padding: 120px 0 40px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(230, 81, 0, 0.04) 0%, transparent 100%);
  border-bottom: 1px solid var(--color-border);
}

.legal-hero__inner {
  max-width: 720px;
}

.legal-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  transition: color 0.2s;
}
.legal-hero__back:hover { color: var(--color-primary); }

.legal-hero__title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-hero__subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  max-width: 560px;
}

.legal-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
  background: var(--color-surface-alt);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

/* ── Layout: sidebar TOC + content ── */
.legal-layout {
  display: flex;
  gap: 48px;
  padding: 48px 0 96px;
}

/* Sidebar TOC — desktop only */
.legal-toc {
  flex: 0 0 220px;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  align-self: flex-start;
  max-height: calc(100vh - var(--nav-height) - 48px);
  overflow-y: auto;
  display: none;
}

.legal-toc__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
  padding-left: 16px;
}

.legal-toc__list {
  list-style: none;
  border-left: 2px solid var(--color-border);
}

.legal-toc__link {
  display: block;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.15s, border-color 0.15s;
  border-left: 2px solid transparent;
  margin-left: -2px;
  line-height: 1.4;
}
.legal-toc__link:hover,
.legal-toc__link.is-active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

/* Mobile TOC — card above content */
.legal-toc-mobile {
  margin-bottom: 32px;
  padding: 20px 24px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.legal-toc-mobile__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.legal-toc-mobile__list {
  list-style: none;
  columns: 1;
}

.legal-toc-mobile__link {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color 0.15s;
}
.legal-toc-mobile__link:hover { color: var(--color-primary); }

/* ── Content area ── */
.legal-content {
  flex: 1;
  min-width: 0;
  max-width: 720px;
}

.legal-section {
  margin-bottom: 40px;
}
.legal-section:last-child { margin-bottom: 0; }

.legal-section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
  padding-top: 8px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.legal-section h2 .legal-anchor {
  color: var(--color-border);
  text-decoration: none;
  margin-left: 6px;
  opacity: 0;
  transition: opacity 0.15s;
  font-weight: 400;
}
.legal-section h2:hover .legal-anchor {
  opacity: 1;
  color: var(--color-text-secondary);
}

.legal-section h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--color-text);
}

.legal-section p {
  font-size: 15px;
  line-height: 1.78;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
}

.legal-section ul,
.legal-section ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal-section li {
  font-size: 15px;
  line-height: 1.78;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.legal-section strong {
  color: var(--color-text);
  font-weight: 600;
}

.legal-section a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(230, 81, 0, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}
.legal-section a:hover {
  text-decoration-color: var(--color-primary);
}

/* Divider */
.legal-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 40px 0;
}

/* Cross-link card */
.legal-crosslinks {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-crosslinks__label {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.legal-crosslinks__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary) !important;
  text-decoration: none !important;
  transition: opacity 0.15s;
}
.legal-crosslinks__link:hover { opacity: 0.8; }

/* ── Legal page responsive ── */
@media (min-width: 640px) {
  .legal-toc-mobile__list { columns: 2; }
}

@media (min-width: 960px) {
  .legal-toc { display: block; }
  .legal-toc-mobile { display: none; }
}
