*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.legal-page {
  color: #27272a;
  background: #ffffff;
  font-family: "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #e4e4e7;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.legal-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
}

.legal-brand-logo {
  height: 32px;
  width: auto;
  display: block;
  max-width: 180px;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-nav a {
  color: #52525b;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
}

.legal-nav a:hover {
  background: #f4f4f5;
  color: #18181b;
}

.legal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal-mobile-menu {
  display: none;
}

.legal-menu-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid #e4e4e7;
  background: rgba(255, 255, 255, 0.9);
  color: #3f3f46;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.legal-menu-btn:focus-visible {
  outline: 2px solid rgba(66, 133, 244, 0.45);
  outline-offset: 2px;
}

.legal-mobile-menu > summary {
  list-style: none;
}

.legal-mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.legal-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  border-top: 1px solid #e4e4e7;
  border-bottom: 1px solid #e4e4e7;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 12px 16px 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.legal-mobile-nav {
  display: grid;
  gap: 6px;
}

.legal-mobile-nav a {
  color: #3f3f46;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 12px;
  border-radius: 12px;
}

.legal-mobile-nav a:hover {
  background: #f4f4f5;
  color: #18181b;
}

.legal-mobile-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .legal-header-inner {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .legal-nav,
  .legal-actions {
    display: none;
  }

  .legal-mobile-menu {
    display: block;
  }

  .legal-brand-logo {
    height: 28px;
    max-width: 150px;
  }

  /* Mobile: make CTA compact and full-width in the menu panel */
  .legal-mobile-actions .legal-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #e4e4e7;
    background: #ffffff;
  }

  .legal-mobile-actions .legal-primary-btn {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    font-size: 0.9rem;
    border-radius: 12px;
  }
}

.legal-link-btn {
  color: #3f3f46;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.legal-link-btn:hover {
  background: #f4f4f5;
  color: #18181b;
}

.legal-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #4285f4 0%, #1d4ed8 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  height: 40px;
  padding: 0 18px;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
  transition: all 0.2s ease;
}

.legal-primary-btn:hover {
  background: linear-gradient(135deg, #3367d6 0%, #1e40af 100%);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
  transform: translateY(-1px);
}

.legal-primary-btn .btn-arrow {
  transition: transform 0.2s ease;
}

.legal-primary-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.legal-main {
  padding: 64px 20px 80px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h1 {
  color: #09090b;
  font-size: 2.35rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.legal-content .subtitle {
  color: #71717a;
  margin: 0 0 44px;
  font-size: 0.95rem;
}

.legal-content section {
  margin: 0 0 44px;
  padding: 0 0 44px;
  border-bottom: 1px solid #f4f4f5;
}

.legal-content section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-content h2 {
  color: #18181b;
  font-size: 1.35rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.legal-content h3 {
  color: #27272a;
  font-size: 1.05rem;
  margin: 24px 0 10px;
}

.legal-content p {
  color: #52525b;
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 18px 22px;
  padding: 0;
}

.legal-content li {
  margin-bottom: 8px;
  color: #52525b;
  font-size: 0.95rem;
}

.legal-content strong {
  color: #18181b;
}

.legal-content a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: #1e40af;
}

.legal-content .contact-info {
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 20px 24px;
}

.legal-footer {
  margin-top: 80px;
  border-top: 1px solid #3f3f46;
  background: #18181b;
}

/* Footer CTA Section */
.legal-footer-cta {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  padding: 48px 20px;
  text-align: center;
  border-bottom: 1px solid #3f3f46;
}

.footer-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-cta-content h3 {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.footer-cta-content > p {
  color: #a1a1aa;
  font-size: 1rem;
  margin: 0 0 24px;
}

.footer-domain-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.domain-input-wrap {
  position: relative;
  flex: 1;
}

.domain-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #71717a;
  pointer-events: none;
}

.domain-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  font-size: 1rem;
  font-family: inherit;
  color: #fafafa;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.domain-input::placeholder {
  color: #71717a;
}

.domain-input:focus {
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

.domain-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background: linear-gradient(135deg, #4285f4 0%, #1d4ed8 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.domain-submit-btn:hover {
  background: linear-gradient(135deg, #3367d6 0%, #1e40af 100%);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
  transform: translateY(-1px);
}

.domain-submit-btn svg {
  transition: transform 0.2s ease;
}

.domain-submit-btn:hover svg {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .footer-domain-form {
    flex-direction: column;
  }
  
  .domain-submit-btn {
    width: 100%;
  }
  
  .footer-cta-content h3 {
    font-size: 1.4rem;
  }
}

.legal-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 20px 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.legal-footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 10px;
}

.legal-footer-brand p {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.9rem;
  max-width: 460px;
}

.legal-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}

.legal-footer-links a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.9rem;
}

.legal-footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.legal-footer-bottom {
  border-top: 1px solid #3f3f46;
  padding: 12px 20px 20px;
  text-align: center;
  background: #18181b;
}

.legal-footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: #71717a;
}

@media (max-width: 900px) {
  .legal-nav {
    display: none;
  }

  .legal-footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .legal-header-inner {
    padding: 0 12px;
  }

  .legal-actions .legal-link-btn {
    display: none;
  }

  .legal-main {
    padding: 44px 14px 56px;
  }

  .legal-content h1 {
    font-size: 1.85rem;
  }
}

/* About Page Premium Styles */
.about-hero {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #f4f4f5;
}

.about-hero h1 {
  background: linear-gradient(135deg, #4285f4 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.75rem;
  margin-bottom: 12px;
}

.about-hero .subtitle {
  font-size: 1.15rem;
  color: #52525b;
  margin: 0;
}

.about-section {
  margin: 0 0 48px;
  padding: 0 0 48px;
  border-bottom: 1px solid #f4f4f5;
}

.about-section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4285f4;
  background: rgba(66, 133, 244, 0.1);
  border: 1px solid rgba(66, 133, 244, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 16px;
}

.about-section h2 {
  color: #18181b;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.feature-card {
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: #4285f4;
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.1);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  color: #18181b;
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.feature-card p {
  color: #52525b;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.value-card {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.04) 0%, rgba(66, 133, 244, 0.08) 100%);
  border: 1px solid rgba(66, 133, 244, 0.15);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.value-card h3 {
  color: #18181b;
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.value-card p {
  color: #52525b;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* FAQ Expandable */
.faq-item {
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  color: #18181b;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: #4285f4;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: #f4f4f5;
}

.faq-item p {
  padding: 0 20px 18px;
  margin: 0;
  color: #52525b;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Contact Section */
.about-contact {
  text-align: center;
}

.about-contact .contact-info {
  max-width: 400px;
  margin: 24px auto 0;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.06) 0%, rgba(66, 133, 244, 0.12) 100%);
  border: 1px solid rgba(66, 133, 244, 0.2);
}

.contact-email {
  display: inline-block;
  color: #4285f4;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .about-hero h1 {
    font-size: 2rem;
  }
  
  .feature-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card,
  .value-card {
    padding: 20px;
  }
}
