/* Privacy Policy page styles — extends tokens from style.css */

/*
 * Defeat homepage single-viewport lock from style.css:
 * @media (min-width: 1024px) and (min-height: 800px) {
 *   body { height: 100vh; max-height: 100vh; overflow: hidden; }
 * }
 * Without this, legal footers can appear stuck in the viewport corner.
 */
html.legal-page,
html:has(body.legal-page) {
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.legal-page {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: static !important;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-accent, #00e5ff);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* Header */
.privacy-header {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}
.privacy-logo-link {
  display: inline-block;
}
.privacy-logo {
  height: 38px;
  width: auto;
  display: block;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-top: 1rem;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted, #94a3b8);
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.5;
}
.breadcrumbs a {
  color: var(--color-text-muted, #94a3b8);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover {
  color: var(--color-accent, #00e5ff);
}
.breadcrumbs [aria-current="page"] {
  color: var(--color-text, #e2e8f0);
}

/* Main content */
.privacy-main {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 0 2rem 2rem;
}
.privacy-article {
  color: var(--color-text, #e2e8f0);
}
.privacy-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--color-text, #fff);
}
.privacy-effective {
  font-size: 0.85rem;
  color: var(--color-text-muted, #94a3b8);
  margin: 0 0 2rem;
}

/* TOC */
.toc {
  margin-bottom: 2.5rem;
  padding: 1.5rem 2rem;
  border-radius: 12px;
}
.toc-heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-text, #fff);
}
.toc-list {
  padding-left: 1.25rem;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.35rem 2rem;
}
.toc-list li {
  font-size: 0.85rem;
  line-height: 1.6;
}
.toc-list a {
  color: var(--color-text-muted, #94a3b8);
  text-decoration: none;
  transition: color 0.2s;
}
.toc-list a:hover,
.toc-list a.active {
  color: var(--color-accent, #00e5ff);
}

/* Glass card (reuse for TOC) */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Content sections */
.privacy-content section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 2rem;
}
.privacy-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-text, #fff);
}
.privacy-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--color-text, #fff);
}
.privacy-content p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-muted, #cbd5e1);
  margin: 0 0 0.75rem;
}
.privacy-content ul,
.privacy-content ol {
  padding-left: 1.5rem;
  margin: 0 0 0.75rem;
}
.privacy-content li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-muted, #cbd5e1);
  margin-bottom: 0.35rem;
}
.privacy-content a {
  color: var(--color-accent, #00e5ff);
  text-decoration: none;
  transition: opacity 0.2s;
}
.privacy-content a:hover {
  opacity: 0.8;
  text-decoration: underline;
}
.company-address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-muted, #cbd5e1);
}

/* Language switch float adjustments */
.lang-switch-float {
  z-index: 100;
}

/* --- Professional site footer (normal document flow, full width) --- */
.site-footer {
  position: static !important;
  clear: both;
  width: 100%;
  z-index: 10;
  margin-top: 4rem;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.55);
}

.site-footer-inner {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 2.75rem 2rem 2.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: start;
  box-sizing: border-box;
}

.site-footer-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.site-footer-address,
.site-footer-meta,
.site-footer-copy {
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-dim, #5a8a96);
  margin: 0;
}

.site-footer-meta {
  margin-top: 0.85rem;
}

.site-footer a {
  color: var(--color-text-muted, #8ec8d4);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--color-accent, #00f0ff);
}

.site-footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  padding: 0;
  margin: 0 0 1.25rem;
}

.site-footer-links a {
  font-size: 0.85rem;
  font-weight: 500;
}

.site-footer-links-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.site-footer-copy {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* --- SMS Opt-In redesign --- */
.sms-page {
  position: relative;
  z-index: 10;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

.sms-hero {
  margin: 1.5rem 0 2rem;
}

.sms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: rgba(0, 240, 255, 0.08);
  color: var(--color-accent, #00f0ff);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sms-hero-title {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.sms-hero-lead {
  max-width: 720px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-muted, #8ec8d4);
}

.sms-form-card,
.sms-feature-card,
.sms-control-card,
.sms-company-card,
.sms-callout,
.sms-alert {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
}

.sms-form-card {
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.04), 0 20px 60px rgba(0, 0, 0, 0.35);
}

.sms-form-card-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  color: #fff;
}

.sms-form-card-header p {
  margin: 0 0 1.25rem;
  color: var(--color-text-muted, #8ec8d4);
  font-size: 0.95rem;
  line-height: 1.6;
}

.sms-disclosure-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.5rem;
}

.sms-disclosure-chips li {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.16);
  background: rgba(0, 240, 255, 0.05);
  color: var(--color-text-muted, #8ec8d4);
  font-size: 0.78rem;
  font-weight: 500;
}

.sms-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sms-phone-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) 1.4fr;
  gap: 1rem;
}

.sms-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.sms-field input[type="tel"],
.sms-field select {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sms-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8ec8d4 50%),
    linear-gradient(135deg, #8ec8d4 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.sms-field input[type="tel"]:hover,
.sms-field select:hover {
  border-color: rgba(0, 240, 255, 0.28);
}

.sms-field input[type="tel"]:focus,
.sms-field select:focus {
  outline: none;
  border-color: var(--color-accent, #00f0ff);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

.sms-consent {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.sms-consent-label {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text-muted, #cbd5e1);
  cursor: pointer;
}

.sms-consent-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  accent-color: var(--color-accent, #00f0ff);
}

.sms-consent a,
.sms-form-note a,
.sms-steps a,
.sms-company-card a {
  color: var(--color-accent, #00f0ff);
  text-decoration: none;
}

.sms-consent a:hover,
.sms-form-note a:hover,
.sms-steps a:hover,
.sms-company-card a:hover {
  text-decoration: underline;
}

.sms-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.sms-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 180px;
  padding: 0.9rem 1.6rem;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.28), rgba(56, 182, 255, 0.16));
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.12);
  transition: border-color 0.2s, background 0.2s, transform 0.15s, opacity 0.2s;
}

.sms-submit:hover {
  border-color: var(--color-accent, #00f0ff);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.38), rgba(56, 182, 255, 0.24));
  transform: translateY(-1px);
}

.sms-submit:focus-visible {
  outline: 2px solid var(--color-accent, #00f0ff);
  outline-offset: 3px;
}

.sms-submit:disabled,
.sms-submit.is-loading {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.sms-form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-dim, #5a8a96);
}

.sms-alert {
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.sms-alert strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
}

.sms-alert p,
.sms-alert ul {
  margin: 0;
  color: inherit;
}

.sms-alert ul {
  padding-left: 1.1rem;
}

.sms-alert-success {
  border-color: rgba(0, 230, 118, 0.35);
  background: rgba(0, 230, 118, 0.08);
  color: #b7ffd5;
}

.sms-alert-error {
  border-color: rgba(255, 90, 90, 0.4);
  background: rgba(255, 90, 90, 0.08);
  color: #ffc9c9;
}

.sms-section {
  margin-bottom: 2.75rem;
}

.sms-section-header {
  margin-bottom: 1.25rem;
}

.sms-section-header h2,
.sms-company-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  color: #fff;
}

.sms-section-header p {
  margin: 0;
  color: var(--color-text-muted, #8ec8d4);
  font-size: 0.95rem;
}

.sms-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.sms-feature-card {
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}

.sms-feature-card:hover {
  border-color: rgba(0, 240, 255, 0.22);
  transform: translateY(-2px);
}

.sms-feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.08);
  color: var(--color-accent, #00f0ff);
}

.sms-feature-icon svg {
  width: 22px;
  height: 22px;
}

.sms-feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #fff;
}

.sms-feature-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-muted, #8ec8d4);
}

.sms-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sms-control-card {
  padding: 1.25rem 1.35rem;
}

.sms-control-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(203, 108, 230, 0.12);
  border: 1px solid rgba(203, 108, 230, 0.28);
  color: #e2b7f3;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sms-control-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-muted, #8ec8d4);
}

.sms-steps {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0 0 1.25rem;
}

.sms-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.sms-step-num {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.28);
  color: var(--color-accent, #00f0ff);
  font-size: 0.85rem;
  font-weight: 700;
}

.sms-steps h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: #fff;
}

.sms-steps p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted, #8ec8d4);
}

.sms-callout {
  padding: 1.25rem 1.4rem;
}

.sms-callout p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted, #cbd5e1);
}

.sms-callout p:last-child {
  margin-bottom: 0;
}

.sms-company-card {
  padding: 1.5rem 1.75rem;
}

.sms-company-card address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted, #8ec8d4);
}

/* Responsive */
@media (max-width: 900px) {
  .sms-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .privacy-header,
  .privacy-main,
  .sms-page {
    padding: 0 1.25rem;
  }

  .toc,
  .sms-form-card {
    padding: 1.25rem 1.35rem;
  }

  .toc-list {
    grid-template-columns: 1fr;
  }

  .privacy-logo {
    height: 30px;
  }

  .sms-phone-row,
  .sms-feature-grid,
  .sms-control-grid {
    grid-template-columns: 1fr;
  }

  .sms-submit {
    width: 100%;
  }

  .site-footer-inner {
    padding: 2rem 1.25rem;
  }
}
