:root {
  color-scheme: light;
  --green: #11ad5c;
  --green-dark: #08783f;
  --ink: #101828;
  --muted: #667085;
  --line: #d9e3dd;
  --soft: #f4fbf7;
  --white: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f4fbf7 0%, #ffffff 340px);
}

a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

p,
li {
  color: #475467;
  font-size: 17px;
  line-height: 1.72;
}

.legal-container {
  width: min(100% - 36px, 980px);
  margin-inline: auto;
}

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.legal-nav .legal-container,
.legal-footer .legal-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.legal-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.legal-back {
  padding: 10px 14px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
}

.legal-page {
  padding: clamp(52px, 8vw, 96px) 0;
}

.legal-hero {
  margin-bottom: 34px;
  padding: clamp(28px, 5vw, 46px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 120, 63, 0.96), rgba(17, 173, 92, 0.82)),
    url("so-thue-do-mockup-iphone/1126922883553554236-landscape.png") center / cover;
  border-radius: 8px;
}

.legal-eyebrow {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0 0 16px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.legal-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.legal-section,
.legal-note,
.legal-steps,
.legal-options {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(16, 24, 40, 0.05);
}

.legal-section {
  margin-top: 16px;
  padding: clamp(22px, 4vw, 34px);
}

h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.num {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
}

ul,
ol {
  padding-left: 24px;
}

.legal-note {
  margin-top: 16px;
  padding: 20px;
  background: var(--soft);
}

.legal-steps,
.legal-options {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  background: #fbfdfc;
}

.legal-step,
.legal-option {
  padding: 18px;
  background: var(--white);
  border: 1px solid #e1e9e4;
  border-radius: 8px;
}

.legal-screenshot-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.legal-step {
  margin: 0;
}

.legal-step img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  object-position: top center;
  padding: 10px;
  background: #f4f6f5;
  border: 1px solid #e1e9e4;
  border-radius: 8px;
}

.legal-step figcaption {
  margin-top: 14px;
  color: #475467;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.58;
}

.legal-step figcaption strong {
  color: var(--ink);
}

.legal-effective {
  margin: 28px 0 0;
  padding: 18px 20px;
  color: var(--green-dark);
  background: #e8f7ef;
  border: 1px solid #bde8cf;
  border-radius: 8px;
  font-weight: 900;
}

.legal-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.legal-footer .legal-container {
  min-height: auto;
  padding-block: 28px;
}

.legal-footer p {
  margin: 0;
  font-size: 15px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
}

@media (max-width: 720px) {
  .legal-container {
    width: min(100% - 32px, 980px);
  }

  .legal-nav .legal-container,
  .legal-footer .legal-container {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px;
  }

  .legal-back {
    width: 100%;
    text-align: center;
  }

  .legal-hero {
    padding: 24px;
  }

  h2 {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-screenshot-steps {
    grid-template-columns: 1fr;
  }

  .legal-step img {
    max-height: none;
  }

  .legal-links {
    justify-content: flex-start;
  }
}
