
/* =====================================================
   ADGUARDDNS.ORG
   TERMS OF USE & DISCLAIMER PAGE

   File: css/terms-and-disclaimer.css

   Premium Light Purple Design
   Matching Approved Mockup
   Compact Typography
   Sticky Sidebar
   Two Image Areas
   Fully Responsive

   Page styles scoped with .td-page
===================================================== */

/* ============================================
   01 — GLOBAL STYLES
============================================ */

.td-page {
  --td-purple: #7927ad;
  --td-purple-dark: #4f1879;
  --td-ink: #24182f;
  --td-muted: #665b72;
  --td-border: #e8dcef;
  --td-light: #f4e8fd;

  width: 100%;
  overflow-x: clip;

  background: #fcfaff;
  color: var(--td-ink);

  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.75;
}

.td-page,
.td-page *,
.td-page *::before,
.td-page *::after {
  box-sizing: border-box;
}

.td-page .td-container {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}

.td-page h1,
.td-page h2,
.td-page h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--td-ink);
}

.td-page p {
  margin-top: 0;
}

.td-page a {
  text-decoration: none;
}

.td-page ion-icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.td-page a:focus-visible {
  outline: 3px solid #ae6bdc;
  outline-offset: 4px;
}

.td-page [id] {
  scroll-margin-top: 115px;
}

/* ============================================
   02 — HERO SECTION
============================================ */

.td-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  padding: 20px 0 40px;

  background:
    radial-gradient(
      ellipse at 76% 35%,
      rgba(205, 162, 246, 0.43),
      transparent 47%
    ),
    linear-gradient(
      110deg,
      #fbf6ff 0%,
      #f1e2fe 60%,
      #e7d1fb 100%
    );

  border-bottom: 1px solid #e9d8f5;
}

/* Subtle decorative curves */

.td-hero::before {
  content: "";

  position: absolute;
  z-index: -1;

  width: 660px;
  height: 310px;

  right: -170px;
  top: -175px;

  border-radius: 50%;
  background: rgba(178, 118, 232, 0.13);
}

.td-hero::after {
  content: "";

  position: absolute;
  z-index: -1;

  width: 780px;
  height: 240px;

  left: -190px;
  bottom: -190px;

  border-radius: 50%;
  background: rgba(188, 139, 236, 0.12);
}

/* Breadcrumb */

.td-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;

  margin-bottom: 25px;

  color: #7c6b8a;
  font-size: 11px;
  line-height: 1.6;
}

.td-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: #64208f;
  font-weight: 700;
}

.td-breadcrumb a:hover {
  text-decoration: underline;
}

.td-breadcrumb ion-icon {
  font-size: 13px;
}

/* Hero content layout */

.td-hero__layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(0, 0.75fr);

  align-items: center;
  gap: 35px;

  min-height: 230px;
}

.td-hero__content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.td-eyebrow {
  display: inline-flex;
  align-items: center;

  margin-bottom: 14px;
  padding: 6px 13px;

  border-radius: 25px;

  background: #e9d1fb;
  color: #70229e;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.td-hero h1 {
  max-width: 700px;

  margin: 0 0 15px;

  color: #251332;
  font-size: clamp(31px, 3.5vw, 45px);
  line-height: 1.21;
  letter-spacing: -0.045em;
}

.td-hero h1 span {
  color: #7524a5;
}

.td-hero__content > p {
  max-width: 660px;
  margin-bottom: 18px;

  color: #594b69;
  font-size: 14px;
  line-height: 1.85;
}

/* Small hero benefit labels */

.td-hero__points {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px 22px;
}

.td-hero__points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #50365f;
  font-size: 11px;
  font-weight: 700;
}

.td-hero__points ion-icon {
  color: #842cb7;
  font-size: 18px;
}

/* ============================================
   03 — HERO IMAGE
============================================ */

.td-hero__image {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  justify-self: end;

  width: 100%;
  max-width: 385px;
  min-width: 0;
}

.td-hero__image::before {
  content: "";

  position: absolute;
  z-index: -1;

  width: 78%;
  aspect-ratio: 1;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(187, 130, 239, 0.23),
      transparent 75%
    );
}

.td-hero__image img {
  display: block;

  width: 100%;
  height: auto;
  max-height: 275px;

  object-fit: contain;

  filter:
    drop-shadow(0 15px 17px rgba(88, 38, 126, 0.10));
}

/* ============================================
   04 — MAIN CONTENT
============================================ */

.td-content-section {
  padding: 43px 0 70px;

  background:
    linear-gradient(
      180deg,
      #fcfaff,
      #ffffff 65%,
      #fcfaff
    );
}

.td-main-layout {
  display: grid;

  grid-template-columns:
    minmax(230px, 0.32fr)
    minmax(0, 1fr);

  align-items: start;
  gap: 24px;
}

/* ============================================
   05 — LEFT SIDEBAR
============================================ */

.td-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;

  min-width: 0;
}

/* Table of contents */

.td-toc {
  position: sticky;
  top: 105px;

  padding: 23px 16px 18px;

  border: 1px solid var(--td-border);
  border-radius: 15px;

  background: #ffffff;

  box-shadow:
    0 8px 26px rgba(57, 20, 84, 0.045);
}

.td-toc__heading {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 0 7px;
  margin-bottom: 16px;
}

.td-toc__heading ion-icon {
  color: var(--td-purple);
  font-size: 21px;
}

.td-toc__heading h2 {
  margin: 0;

  font-size: 18px;
  line-height: 1.4;
}

.td-toc ul {
  display: grid;
  gap: 3px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.td-toc li {
  margin: 0;
  padding: 0;
}

.td-toc__link {
  display: flex;
  align-items: center;
  gap: 10px;

  min-height: 42px;
  padding: 9px 11px;

  border-radius: 9px;

  color: #51445c;

  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

/* Small section number */

.td-toc__link > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 27px;

  width: 27px;
  height: 25px;

  border-radius: 7px;

  background: #f5ecfb;
  color: #8b3aba;

  font-size: 10px;
  font-weight: 800;
}

.td-toc__link:hover {
  color: #6f239b;
  background: #f8effe;

  transform: translateX(2px);
}

/* First section highlighted */

.td-toc__link--active {
  color: #612087;

  background:
    linear-gradient(
      90deg,
      #f2e3ff,
      #ead3fa
    );

  box-shadow:
    inset 3px 0 0 #8028b7;
}

/* ============================================
   06 — SIDEBAR IMAGE CARD
============================================ */

.td-sidebar-art {
  overflow: hidden;

  padding: 20px;

  border: 1px solid #e2cbf3;
  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      #f1e0fc 0%,
      #fbf6ff 100%
    );
}

.td-sidebar-art img {
  display: block;

  width: 100%;
  height: auto;
  max-height: 220px;

  margin: 0 auto 15px;

  object-fit: contain;

  filter:
    drop-shadow(0 9px 13px rgba(78, 26, 117, 0.09));
}

.td-sidebar-art h3 {
  margin: 0 0 9px;

  color: #4d1b70;
  font-size: 16px;
  line-height: 1.45;
}

.td-sidebar-art > p {
  margin: 0 0 16px;

  color: #685778;
  font-size: 11px;
  line-height: 1.8;
}

.td-sidebar-art ul {
  display: grid;
  gap: 10px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.td-sidebar-art li {
  display: flex;
  align-items: flex-start;
  gap: 8px;

  color: #50415d;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.65;
}

.td-sidebar-art li ion-icon {
  margin-top: 2px;

  color: #822bad;
  font-size: 16px;
}

/* ============================================
   07 — RIGHT CONTENT COLUMN
============================================ */

.td-terms {
  display: flex;
  flex-direction: column;
  gap: 12px;

  min-width: 0;
}

/* ============================================
   08 — INTRODUCTORY NOTICE
============================================ */

.td-introduction {
  display: flex;
  align-items: flex-start;
  gap: 15px;

  padding: 21px 23px;

  border: 1px solid #e5d7ee;
  border-radius: 13px;

  background:
    linear-gradient(
      110deg,
      #f5eafa,
      #ffffff
    );
}

.td-introduction__icon {
  display: grid;
  place-items: center;

  flex: 0 0 42px;
  width: 42px;
  height: 42px;

  border-radius: 10px;

  background: #ead4f8;
  color: #7925aa;
}

.td-introduction__icon ion-icon {
  font-size: 23px;
}

.td-introduction h2 {
  margin: 0 0 6px;

  font-size: 17px;
  line-height: 1.4;
}

.td-introduction p {
  margin: 0;

  color: #675a71;
  font-size: 12px;
  line-height: 1.85;
}

/* ============================================
   09 — TERMS CONTENT CARDS
============================================ */

.td-term {
  display: grid;

  grid-template-columns:
    34px 46px minmax(0, 1fr);

  align-items: start;
  gap: 15px;

  min-width: 0;

  padding: 21px;

  border: 1px solid var(--td-border);
  border-radius: 13px;

  background: #ffffff;

  box-shadow:
    0 5px 17px rgba(56, 18, 83, 0.025);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.td-term:hover {
  border-color: #d9b9ed;

  box-shadow:
    0 8px 24px rgba(59, 20, 91, 0.045);
}

/* Number badge */

.td-term__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 26px;

  padding: 4px 6px;

  border-radius: 8px;

  background: #eddafa;
  color: #7826a8;

  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

/* Icon */

.td-term__icon {
  display: grid;
  place-items: center;

  width: 46px;
  height: 46px;

  border-radius: 11px;

  background:
    linear-gradient(
      145deg,
      #f0e0fa,
      #faf5ff
    );

  color: #8128b2;
}

.td-term__icon ion-icon {
  font-size: 23px;
}

/* Written content */

.td-term__body {
  min-width: 0;
}

.td-term__body h2 {
  margin: 0 0 8px;

  font-size: 17px;
  line-height: 1.4;
}

.td-term__body p {
  margin: 0 0 11px;

  color: #5e5369;
  font-size: 12px;
  line-height: 1.9;
}

.td-term__body p:last-child {
  margin-bottom: 0;
}

.td-term__body a {
  color: #7725ab;
  font-weight: 700;

  text-decoration: underline;
  text-underline-offset: 3px;

  overflow-wrap: anywhere;
}

.td-term__body strong {
  color: #342441;
  font-weight: 700;
}

/* ============================================
   10 — HIGHLIGHTED DNS LIMITATIONS
============================================ */

.td-term--highlight {
  border-color: #d7b8ed;

  background:
    linear-gradient(
      110deg,
      #faf4ff,
      #ffffff
    );

  box-shadow:
    0 8px 25px rgba(91, 33, 132, 0.045);
}

.td-term__label {
  display: inline-flex;

  margin-bottom: 9px;
  padding: 5px 10px;

  border-radius: 6px;

  background: #eddbfa;
  color: #73249d;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.td-term__important {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  margin-top: 14px;
  padding: 14px;

  border: 1px solid #ead4f8;
  border-radius: 10px;

  background: #f5eafd;
}

.td-term__important > ion-icon {
  margin-top: 2px;

  color: #7929a9;
  font-size: 21px;
}

.td-term__important p {
  margin: 0;

  color: #5a3e70;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.8;
}

/* ============================================
   11 — CONTACT CTA BANNER
============================================ */

.td-final-cta {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-top: 15px;
  padding: 23px;

  border: 1px solid #dec2f2;
  border-radius: 14px;

  background:
    linear-gradient(
      110deg,
      #f0ddfb 0%,
      #faf4ff 100%
    );
}

.td-final-cta__icon {
  display: grid;
  place-items: center;

  flex: 0 0 53px;
  width: 53px;
  height: 53px;

  border-radius: 13px;

  background: #e7cbf8;
  color: #7926ad;
}

.td-final-cta__icon ion-icon {
  font-size: 27px;
}

.td-final-cta__content {
  flex: 1;
  min-width: 0;
}

.td-final-cta__content h2 {
  margin: 0 0 7px;

  color: #57207c;

  font-size: 16px;
  line-height: 1.45;
}

.td-final-cta__content p {
  max-width: 470px;
  margin: 0;

  color: #6d5b79;
  font-size: 11px;
  line-height: 1.8;
}

/* Contact button */

.td-final-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  flex: 0 0 auto;

  min-height: 43px;
  padding: 12px 17px;

  border-radius: 9px;

  background:
    linear-gradient(
      115deg,
      #fb6048,
      #e83b26
    );

  color: #ffffff !important;

  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;

  box-shadow:
    0 6px 16px rgba(224, 62, 35, 0.14);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.td-final-cta__button ion-icon {
  font-size: 15px;
}

.td-final-cta__button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 9px 22px rgba(224, 62, 35, 0.21);
}

/* ============================================
   12 — TABLET
============================================ */

@media (max-width: 1024px) {

  .td-page .td-container {
    width: calc(100% - 48px);
  }

  .td-hero__layout {
    grid-template-columns:
      minmax(0, 1.2fr)
      minmax(0, 0.8fr);

    gap: 20px;
  }

  .td-hero h1 {
    font-size: 37px;
  }

  .td-hero__image {
    max-width: 315px;
  }

  .td-main-layout {
    grid-template-columns:
      minmax(210px, 0.31fr)
      minmax(0, 1fr);

    gap: 18px;
  }

  .td-toc {
    padding: 19px 12px;
  }

  .td-toc__link {
    gap: 8px;
    padding: 9px 8px;
    font-size: 10px;
  }

  .td-term {
    grid-template-columns:
      31px 40px minmax(0, 1fr);

    gap: 11px;
    padding: 18px;
  }

  .td-term__number {
    width: 31px;
  }

  .td-term__icon {
    width: 40px;
    height: 40px;
  }

  .td-term__icon ion-icon {
    font-size: 21px;
  }

  .td-term__body h2 {
    font-size: 16px;
  }

  .td-final-cta {
    flex-wrap: wrap;
  }

  .td-final-cta__button {
    margin-left: 69px;
  }
}

/* ============================================
   13 — SMALL TABLET
============================================ */

@media (max-width: 800px) {

  .td-hero {
    padding-bottom: 33px;
  }

  .td-hero__layout {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 220px);

    min-height: 0;
  }

  .td-hero h1 {
    font-size: 34px;
  }

  .td-hero__content > p {
    font-size: 12px;
  }

  .td-hero__image {
    max-width: 220px;
  }

  .td-hero__image img {
    max-height: 205px;
  }

  /* Switch to one content column */

  .td-main-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .td-toc {
    position: static;
  }

  .td-toc ul {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 5px;
  }

  .td-toc__link {
    font-size: 11px;
  }

  /* Side illustration becomes horizontal */

  .td-sidebar-art {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 0 20px;
    align-items: center;
  }

  .td-sidebar-art img {
    grid-row: span 3;

    max-height: 165px;
    margin-bottom: 0;
  }

  .td-sidebar-art h3 {
    align-self: end;
  }

  .td-sidebar-art ul {
    gap: 6px;
  }

  .td-term {
    grid-template-columns:
      34px 46px minmax(0, 1fr);

    gap: 14px;
  }

  .td-term__icon {
    width: 46px;
    height: 46px;
  }

  .td-final-cta__button {
    margin-left: 0;
  }
}

/* ============================================
   14 — MOBILE
============================================ */

@media (max-width: 600px) {

  .td-page .td-container {
    width: calc(100% - 32px);
  }

  /* Hero */

  .td-hero {
    padding: 17px 0 28px;
  }

  .td-breadcrumb {
    margin-bottom: 20px;
    font-size: 10px;
  }

  .td-hero__layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .td-eyebrow {
    margin-bottom: 10px;
    font-size: 9px;
  }

  .td-hero h1 {
    font-size: clamp(29px, 7.5vw, 35px);
    line-height: 1.24;
  }

  .td-hero__content > p {
    margin-bottom: 14px;

    font-size: 12px;
    line-height: 1.8;
  }

  .td-hero__points {
    gap: 10px 16px;
  }

  .td-hero__points span {
    font-size: 10px;
  }

  /* Show hero image on mobile */

  .td-hero__image {
    justify-self: center;

    max-width: 245px;
  }

  .td-hero__image img {
    max-height: 190px;
  }

  /* Main area */

  .td-content-section {
    padding: 28px 0 48px;
  }

  .td-main-layout {
    gap: 17px;
  }

  /* Sidebar links */

  .td-toc {
    padding: 17px 13px;
  }

  .td-toc__heading h2 {
    font-size: 16px;
  }

  .td-toc ul {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .td-toc__link {
    min-height: 40px;
    padding: 8px;

    font-size: 10px;
  }

  .td-toc__link > span {
    flex-basis: 24px;

    width: 24px;
    height: 23px;
    font-size: 9px;
  }

  /* Sidebar illustration */

  .td-sidebar-art {
    display: block;
    padding: 18px;
  }

  .td-sidebar-art img {
    max-width: 260px;
    max-height: 170px;
    margin-bottom: 13px;
  }

  .td-sidebar-art h3 {
    font-size: 15px;
  }

  /* Intro */

  .td-introduction {
    padding: 18px;
    gap: 12px;
  }

  .td-introduction__icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .td-introduction h2 {
    font-size: 16px;
  }

  .td-introduction p {
    font-size: 12px;
  }

  /* Terms cards */

  .td-term {
    grid-template-columns:
      31px minmax(0, 1fr);

    gap: 11px;
    padding: 17px;

    border-radius: 11px;
  }

  .td-term__number {
    grid-column: 1;
    grid-row: 1;

    width: 31px;
    height: 26px;
  }

  .td-term__icon {
    grid-column: 2;
    grid-row: 1;

    width: 39px;
    height: 39px;
  }

  .td-term__icon ion-icon {
    font-size: 21px;
  }

  .td-term__body {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .td-term__body h2 {
    font-size: 16px;
  }

  .td-term__body p {
    font-size: 12px;
    line-height: 1.85;
  }

  .td-term__important {
    padding: 12px;
  }

  /* Final CTA */

  .td-final-cta {
    flex-direction: column;
    align-items: flex-start;

    gap: 12px;

    padding: 19px;
  }

  .td-final-cta__icon {
    width: 45px;
    height: 45px;
    flex-basis: 45px;
  }

  .td-final-cta__icon ion-icon {
    font-size: 23px;
  }

  .td-final-cta__content h2 {
    font-size: 16px;
  }

  .td-final-cta__button {
    width: 100%;
    min-height: 44px;
  }
}

/* ============================================
   15 — EXTRA SMALL MOBILE
============================================ */

@media (max-width: 390px) {

  .td-hero h1 {
    font-size: 29px;
  }

  .td-toc ul {
    grid-template-columns: 1fr;
  }

  .td-toc__link {
    font-size: 11px;
  }

  .td-hero__image {
    max-width: 205px;
  }

  .td-term {
    padding: 15px;
  }

  .td-term__body h2 {
    font-size: 15px;
  }
}

/* ============================================
   16 — ACCESSIBILITY
============================================ */

@media (prefers-reduced-motion: reduce) {

  .td-page *,
  .td-page *::before,
  .td-page *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================
   FIX: DISABLE STICKY LEFT SIDEBAR
========================================== */

.td-toc {
  position: static !important;
  top: auto !important;
}

.td-sidebar {
  align-self: start;
}
