/*
|--------------------------------------------------------------------------
| Termos e Condições — MotoKids Moz
|--------------------------------------------------------------------------
*/

.terms-page {
  --terms-red: #d71919;
  --terms-red-dark: #a80f0f;
  --terms-yellow: #f5c400;
  --terms-black: #090909;
  --terms-text: #202124;
  --terms-muted: #68707a;
  --terms-border: #e5e7eb;
  --terms-background: #f7f7f7;
  --terms-white: #ffffff;

  overflow: hidden;
  background: var(--terms-white);
  color: var(--terms-text);
}

.terms-page *,
.terms-page *::before,
.terms-page *::after {
  box-sizing: border-box;
}

.terms-page button {
  font: inherit;
}

.terms-page .eyebrow {
  margin: 0 0 8px;
  color: var(--terms-red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.terms-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  isolation: isolate;
  background: #050505;
  color: #ffffff;
}

.terms-hero-background {
  position: absolute;
  z-index: 0;
  inset: 0;

  display: block;
  width: 100%;
  height: 100%;
  max-width: none;

  object-fit: cover;
  object-position: center 43%;

  pointer-events: none;
  user-select: none;
}

.terms-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.99) 0%,
      rgba(0, 0, 0, 0.95) 31%,
      rgba(0, 0, 0, 0.76) 48%,
      rgba(0, 0, 0, 0.32) 68%,
      rgba(0, 0, 0, 0.04) 100%
    );

  pointer-events: none;
}

.terms-hero-content {
  position: relative;
  z-index: 2;

  display: flex;
  min-height: 360px;
  align-items: center;

  padding-top: 52px;
  padding-bottom: 52px;
}

.terms-hero-copy {
  width: min(100%, 590px);
}

.terms-hero-copy .eyebrow {
  color: var(--terms-red);
}

.terms-hero-copy h1 {
  margin: 0 0 18px;
  color: #ffffff;

  font-size: clamp(2.7rem, 5vw, 4.7rem);
  font-weight: 900;
  font-style: italic;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;

  text-shadow:
    0 4px 10px rgba(0, 0, 0, 0.9),
    0 12px 24px rgba(0, 0, 0, 0.55);
}

.terms-hero-copy h1 strong {
  display: block;
  color: var(--terms-yellow);
  font: inherit;
}

.terms-hero-copy > p:last-child {
  max-width: 550px;
  margin: 0;

  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  line-height: 1.65;

  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
}

/*
|--------------------------------------------------------------------------
| Introdução
|--------------------------------------------------------------------------
*/

.terms-introduction {
  padding: 54px 0 0;
  background: #ffffff;
}

.terms-introduction-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  align-items: flex-start;

  padding: 25px;

  border: 1px solid var(--terms-border);
  border-radius: 12px;

  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.terms-introduction-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;

  border: 2px solid var(--terms-red);
  border-radius: 12px;

  color: var(--terms-red);
}

.terms-introduction-icon svg {
  width: 29px;
  height: 29px;
}

.terms-introduction-card h2 {
  margin: 0 0 10px;
  color: #111111;
  font-size: 1.35rem;
}

.terms-introduction-card p {
  margin: 0;
  color: var(--terms-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.terms-introduction-note {
  margin-top: 12px !important;
  padding: 11px 13px;

  border-left: 3px solid var(--terms-yellow);
  border-radius: 0 6px 6px 0;

  background: #fff9dd;
  color: #5d4c00 !important;
}

/*
|--------------------------------------------------------------------------
| Cabeçalhos
|--------------------------------------------------------------------------
*/

.terms-section-heading {
  margin-bottom: 29px;
}

.terms-section-heading h2 {
  margin: 0;
  color: #111111;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.1;
}

.terms-centered-heading {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

/*
|--------------------------------------------------------------------------
| Condições principais
|--------------------------------------------------------------------------
*/

.terms-main-section {
  padding: 58px 0 68px;
  background: #ffffff;
}

.terms-main-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 48px;
}

.terms-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: flex-start;
}

.terms-card-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;

  border: 2px solid rgba(215, 25, 25, 0.75);
  border-radius: 10px;

  background: #ffffff;
  color: var(--terms-red);
}

.terms-card-icon svg {
  width: 26px;
  height: 26px;
}

.terms-card-heading {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.terms-card-heading > span {
  color: #111111;
  font-size: 0.82rem;
  font-weight: 900;
}

.terms-card-heading h3 {
  margin: 0;
  color: #111111;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.terms-card-content > p {
  margin: 0 0 8px;
  color: var(--terms-muted);
  font-size: 0.76rem;
  line-height: 1.58;
}

.terms-card-content > p:last-of-type {
  margin-bottom: 0;
}

.terms-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 13px;

  color: var(--terms-red);
  font-size: 0.73rem;
  font-weight: 900;
  text-decoration: none;
}

.terms-card-link svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.terms-card-link:hover svg {
  transform: translateX(4px);
}

/*
|--------------------------------------------------------------------------
| Condições complementares
|--------------------------------------------------------------------------
*/

.terms-details-section {
  padding: 64px 0;
  background: var(--terms-background);
}

.terms-details-list {
  display: grid;
  max-width: 970px;
  margin: 0 auto;
  gap: 11px;
}

.terms-detail-item {
  overflow: hidden;

  border: 1px solid var(--terms-border);
  border-radius: 10px;

  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.035);
}

.terms-detail-button {
  display: flex;
  width: 100%;
  min-height: 68px;

  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 14px 18px;

  border: 0;

  background: #ffffff;
  color: #111111;

  text-align: left;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.terms-detail-button:hover {
  background: #fafafa;
}

.terms-detail-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.terms-detail-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;

  border: 1px solid rgba(215, 25, 25, 0.5);
  border-radius: 9px;

  color: var(--terms-red);
}

.terms-detail-icon svg {
  width: 21px;
  height: 21px;
}

.terms-detail-title small,
.terms-detail-title strong {
  display: block;
}

.terms-detail-title small {
  margin-bottom: 2px;
  color: var(--terms-red);
  font-size: 0.67rem;
  font-weight: 900;
}

.terms-detail-title strong {
  color: #111111;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.terms-detail-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;

  color: var(--terms-red);
}

.terms-detail-arrow svg {
  width: 19px;
  height: 19px;
  transition: transform 0.2s ease;
}

.terms-detail-button[aria-expanded="true"]
.terms-detail-arrow svg {
  transform: rotate(180deg);
}

.terms-detail-content {
  padding: 0 18px 18px 73px;
}

.terms-detail-content p {
  margin: 0 0 9px;
  color: var(--terms-muted);
  font-size: 0.77rem;
  line-height: 1.6;
}

.terms-detail-content p:last-of-type {
  margin-bottom: 0;
}

.terms-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 13px;

  color: var(--terms-red);
  font-size: 0.74rem;
  font-weight: 900;
  text-decoration: none;
}

.terms-detail-link svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.terms-detail-link:hover svg {
  transform: translateX(4px);
}

/*
|--------------------------------------------------------------------------
| Lei aplicável
|--------------------------------------------------------------------------
*/

.terms-legal-section {
  padding: 0 0 60px;
  background: var(--terms-background);
}

.terms-legal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;

  padding: 21px 22px;

  border: 1px solid var(--terms-border);
  border-radius: 10px;

  background: #ffffff;
}

.terms-legal-copy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.terms-legal-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;

  border-radius: 50%;

  background: var(--terms-red);
  color: #ffffff;
}

.terms-legal-icon svg {
  width: 21px;
  height: 21px;
}

.terms-legal-copy h2 {
  margin: 0 0 5px;
  color: #111111;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.terms-legal-copy p {
  margin: 0 0 7px;
  color: var(--terms-muted);
  font-size: 0.73rem;
  line-height: 1.55;
}

.terms-legal-copy p:last-child {
  margin-bottom: 0;
}

.terms-legal-date {
  display: flex;
  align-items: center;
  gap: 11px;

  padding-left: 24px;
  border-left: 1px solid var(--terms-border);
}

.terms-legal-date > svg {
  width: 25px;
  height: 25px;
  color: var(--terms-red);
}

.terms-legal-date small,
.terms-legal-date strong {
  display: block;
}

.terms-legal-date small {
  color: var(--terms-muted);
  font-size: 0.64rem;
}

.terms-legal-date strong {
  margin-top: 2px;
  color: #111111;
  font-size: 0.73rem;
}

/*
|--------------------------------------------------------------------------
| Contactos
|--------------------------------------------------------------------------
*/

.terms-contact-section {
  position: relative;
  overflow: hidden;

  padding: 78px 0;

  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(215, 25, 25, 0.18),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #070707 0%,
      #111111 55%,
      #090909 100%
    );

  color: #ffffff;
}

.terms-contact-section::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -110px;

  width: 340px;
  height: 340px;

  border: 2px solid rgba(215, 25, 25, 0.17);
  border-radius: 50%;
}

.terms-contact-section::after {
  content: "";
  position: absolute;
  bottom: -170px;
  left: 18%;

  width: 390px;
  height: 390px;

  border: 1px solid rgba(245, 196, 0, 0.09);
  border-radius: 50%;
}

.terms-contact-wrapper {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns:
    minmax(0, 0.72fr)
    minmax(430px, 1.28fr);

  gap: clamp(34px, 5vw, 68px);
  align-items: center;
}

.terms-contact-copy,
.terms-contact-panel {
  position: relative;
  min-width: 0;
}

.terms-contact-copy {
  z-index: 1;
  max-width: 550px;
}

.terms-contact-panel {
  z-index: 2;
}

.terms-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 19px;
  padding: 8px 13px;

  border: 1px solid rgba(245, 196, 0, 0.28);
  border-radius: 999px;

  background: rgba(245, 196, 0, 0.08);
  color: var(--terms-yellow);

  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.terms-contact-badge svg {
  width: 17px;
  height: 17px;
}

.terms-contact-copy h2 {
  max-width: 430px;
  margin: 0 0 18px;

  color: #ffffff;

  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: uppercase;

  overflow-wrap: break-word;
}

.terms-contact-copy > p {
  max-width: 525px;
  margin: 0;

  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
  line-height: 1.75;
}

.terms-contact-assurance {
  display: flex;
  align-items: flex-start;
  gap: 11px;

  margin-top: 25px;
  padding: 15px 17px;

  border-left: 3px solid var(--terms-yellow);
  border-radius: 0 8px 8px 0;

  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.74);

  font-size: 0.75rem;
  line-height: 1.55;
}

.terms-contact-assurance svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: var(--terms-yellow);
}

.terms-contact-panel {
  padding: 26px;

  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.035)
    );

  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(10px);
}

.terms-contact-panel-heading {
  margin-bottom: 17px;
}

.terms-contact-panel-heading span,
.terms-contact-panel-heading strong {
  display: block;
}

.terms-contact-panel-heading span {
  margin-bottom: 3px;

  color: var(--terms-yellow);

  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.terms-contact-panel-heading strong {
  color: #ffffff;
  font-size: 1rem;
}

.terms-contact-links {
  display: grid;
  gap: 10px;
}

.terms-contact-link {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 30px;
  gap: 13px;
  align-items: center;

  min-height: 72px;
  padding: 12px 14px;

  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 11px;

  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;

  text-decoration: none;

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.terms-contact-link:hover {
  transform: translateX(5px);

  border-color: rgba(245, 196, 0, 0.48);

  background: rgba(255, 255, 255, 0.085);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.terms-contact-link-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;

  border: 1px solid rgba(215, 25, 25, 0.45);
  border-radius: 10px;

  background: rgba(215, 25, 25, 0.12);
  color: #ff4747;
}

.terms-contact-link-icon svg {
  width: 23px;
  height: 23px;
}

.terms-contact-whatsapp
.terms-contact-link-icon {
  border-color: rgba(37, 211, 102, 0.42);
  background: rgba(37, 211, 102, 0.12);
  color: #38dc75;
}

.terms-contact-link-copy {
  min-width: 0;
}

.terms-contact-link-copy small,
.terms-contact-link-copy strong {
  display: block;
}

.terms-contact-link-copy small {
  margin-bottom: 3px;

  color: rgba(255, 255, 255, 0.52);

  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.terms-contact-link-copy strong {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 0.82rem;
}

.terms-contact-link-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;

  color: rgba(255, 255, 255, 0.45);

  transition:
    color 0.22s ease,
    transform 0.22s ease;
}

.terms-contact-link-arrow svg {
  width: 18px;
  height: 18px;
}

.terms-contact-link:hover
.terms-contact-link-arrow {
  color: var(--terms-yellow);
  transform: translateX(3px);
}

/*
|--------------------------------------------------------------------------
| Nota final
|--------------------------------------------------------------------------
*/

.terms-disclaimer-section {
  padding: 28px 0 56px;
  background: #ffffff;
}

.terms-disclaimer-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  padding: 19px 20px;

  border: 1px solid #f0d899;
  border-radius: 9px;

  background: #fff9e5;
}

.terms-disclaimer-card > svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: #a36b00;
}

.terms-disclaimer-card h2 {
  margin: 0 0 5px;
  color: #5e4300;
  font-size: 0.77rem;
  text-transform: uppercase;
}

.terms-disclaimer-card p {
  margin: 0;
  color: #705b20;
  font-size: 0.72rem;
  line-height: 1.55;
}

/*
|--------------------------------------------------------------------------
| Acessibilidade
|--------------------------------------------------------------------------
*/

.terms-page button:focus-visible,
.terms-page a:focus-visible {
  outline: 3px solid rgba(245, 196, 0, 0.75);
  outline-offset: 3px;
}

/*
|--------------------------------------------------------------------------
| Responsividade
|--------------------------------------------------------------------------
*/

@media (max-width: 950px) {
  .terms-main-grid {
    grid-template-columns: 1fr;
  }

  .terms-contact-wrapper {
    grid-template-columns: 1fr;
  }

  .terms-contact-copy {
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .terms-hero {
    min-height: 440px;
  }

  .terms-hero-background {
    object-position: 68% center;
  }

  .terms-hero::after {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.97) 0%,
        rgba(0, 0, 0, 0.9) 52%,
        rgba(0, 0, 0, 0.48) 78%,
        rgba(0, 0, 0, 0.1) 100%
      );
  }

  .terms-hero-content {
    min-height: 440px;
    align-items: flex-start;

    padding-top: 45px;
    padding-bottom: 150px;
  }

  .terms-introduction-card {
    grid-template-columns: 1fr;
  }

  .terms-legal-card {
    grid-template-columns: 1fr;
  }

  .terms-legal-date {
    padding-top: 15px;
    padding-left: 0;

    border-top: 1px solid var(--terms-border);
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .terms-hero {
    min-height: 500px;
  }

  .terms-hero-content {
    min-height: 500px;

    padding-top: 38px;
    padding-bottom: 175px;
  }

  .terms-hero-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.45rem);
  }

  .terms-hero-copy > p:last-child {
    font-size: 0.9rem;
  }

  .terms-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
  }

  .terms-card-icon {
    width: 43px;
    height: 43px;
  }

  .terms-card-icon svg {
    width: 22px;
    height: 22px;
  }

  .terms-detail-content {
    padding-left: 18px;
  }

  .terms-detail-button {
    padding: 13px 14px;
  }

  .terms-contact-section {
    padding: 58px 0;
  }

  .terms-contact-panel {
    padding: 17px;
    border-radius: 14px;
  }

  .terms-contact-link {
    grid-template-columns: 43px minmax(0, 1fr) 24px;
    padding: 11px;
  }

  .terms-contact-link-icon {
    width: 43px;
    height: 43px;
  }

  .terms-contact-copy h2 {
    max-width: 100%;
    font-size: clamp(1.85rem, 9vw, 2.55rem);
    line-height: 1.08;
  }
}

@media (max-width: 420px) {
  .terms-hero {
    min-height: 530px;
  }

  .terms-hero-content {
    min-height: 530px;
  }

  .terms-detail-title {
    align-items: flex-start;
  }

  .terms-detail-title strong {
    font-size: 0.75rem;
  }
}

/*
|--------------------------------------------------------------------------
| Redução de movimento
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
  .terms-page *,
  .terms-page *::before,
  .terms-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}