
/* =========================================================
   ImageTools - Pages / Info Global Styles
   For:
   about.html
   contact.html
   privacy-policy.html
   terms-of-service.html
   disclaimer.html
   cookies-advertising.html
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  background: #f8fafc;
  color: #172033;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --primary: #635bff;
  --primary-dark: #5148e5;
  --secondary: #7c3aed;

  --dark: #111827;
  --text: #374151;
  --muted: #6b7280;

  --white: #ffffff;
  --light: #f8fafc;
  --border: #e5e7eb;

  --success: #16a34a;
  --danger: #dc2626;

  --shadow-sm:
    0 4px 15px rgba(15, 23, 42, 0.06);

  --shadow:
    0 15px 40px rgba(15, 23, 42, 0.08);

  --shadow-lg:
    0 25px 70px rgba(15, 23, 42, 0.12);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --container: 1180px;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
  width: min(
    calc(100% - 40px),
    var(--container)
  );

  margin-inline: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.94);

  border-bottom:
    1px solid rgba(229, 231, 235, 0.8);

  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.navbar {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
  display: inline-flex;
  align-items: center;

  gap: 9px;

  font-size: 21px;
  font-weight: 800;

  color: var(--dark);

  white-space: nowrap;
}

.logo > span:last-child > span {
  color: var(--primary);
}

.logo-icon {
  width: 35px;
  height: 35px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  color: white;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--secondary)
    );

  box-shadow:
    0 8px 20px rgba(99, 91, 255, 0.25);

  font-size: 19px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav-menu {
  display: flex;
  align-items: center;

  gap: 28px;
}

.nav-menu a {
  position: relative;

  color: #4b5563;

  font-size: 14px;
  font-weight: 600;

  padding: 8px 0;

  transition:
    color 0.25s ease;
}


/* Hover text */

.nav-menu a:hover {
  color: var(--primary);
}


/* =========================================================
   NAVBAR HOVER UNDERLINE
   ========================================================= */

.nav-menu a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 0;

  width: 100%;
  height: 2px;

  border-radius: 10px;

  background: var(--primary);

  transform: scaleX(0);
  transform-origin: center;

  transition:
    transform 0.25s ease;
}


/* Hover line */

.nav-menu a:hover::after {
  transform: scaleX(1);
}


/* Active page */

.nav-menu a.active {
  color: var(--primary);
}

.nav-menu a.active::after {
  transform: scaleX(1);
}


/* =========================================================
   NAV BUTTON
   ========================================================= */

.nav-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 42px;

  padding: 0 17px;

  border-radius: 11px;

  color: white;

  background: var(--dark);

  font-size: 14px;
  font-weight: 700;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-button:hover {
  transform: translateY(-2px);

  background: #1f2937;

  box-shadow:
    0 8px 20px rgba(17, 24, 39, 0.15);
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu-btn {
  display: none;

  width: 42px;
  height: 42px;

  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);

  border-radius: 10px;

  background: white;

  color: var(--dark);

  font-size: 21px;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.mobile-menu-btn:hover {
  border-color: #c7c9d9;
  background: #f8fafc;
}


/* =========================================================
   TOOL / PAGE HERO
   ========================================================= */

.tool-page {
  padding: 75px 0 90px;

  min-height: 500px;

  background:
    linear-gradient(
      180deg,
      #f8faff 0%,
      #ffffff 100%
    );
}

.tool-page-header {
  max-width: 760px;

  margin: 0 auto 40px;

  text-align: center;
}

.tool-page-icon {
  width: 70px;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 20px;

  border-radius: 20px;

  background: #f1f0ff;

  color: var(--primary);

  font-size: 31px;

  box-shadow:
    0 10px 30px rgba(99, 91, 255, 0.12);
}

.tool-page-header h1 {
  color: var(--dark);

  font-size: clamp(
    34px,
    5vw,
    52px
  );

  line-height: 1.1;

  letter-spacing: -1.5px;

  font-weight: 800;
}

.tool-page-header p {
  max-width: 650px;

  margin: 15px auto 0;

  color: var(--muted);

  font-size: 16px;
}


/* =========================================================
   CONTENT SECTION
   ========================================================= */

.content-section {
  padding: 75px 0 90px;

  background: #f8fafc;
}

.content-section .container {
  max-width: 900px;

  margin-inline: auto;
}


/* =========================================================
   CONTENT CARD
   ========================================================= */

.content-section {
  position: relative;
}

.content-section .container {
  padding: 42px;

  border:
    1px solid var(--border);

  border-radius: 22px;

  background: white;

  box-shadow: var(--shadow);
}


/* =========================================================
   HEADINGS
   ========================================================= */

.content-section h2 {
  margin-top: 38px;
  margin-bottom: 13px;

  color: var(--dark);

  font-size: 27px;

  line-height: 1.25;

  letter-spacing: -0.5px;
}

.content-section h2:first-child {
  margin-top: 0;
}


/* Heading accent */

.content-section h2::after {
  content: "";

  display: block;

  width: 38px;
  height: 3px;

  margin-top: 9px;

  border-radius: 20px;

  background:
    linear-gradient(
      90deg,
      var(--primary),
      var(--secondary)
    );
}


/* =========================================================
   PARAGRAPHS
   ========================================================= */

.content-section p {
  margin-bottom: 16px;

  color: var(--muted);

  font-size: 15px;

  line-height: 1.8;
}


/* =========================================================
   LISTS
   ========================================================= */

.content-section ul,
.content-section ol {
  margin: 12px 0 22px;

  padding-left: 22px;

  color: var(--muted);

  font-size: 15px;
}

.content-section li {
  margin-bottom: 9px;

  line-height: 1.7;
}


/* =========================================================
   LINKS
   ========================================================= */

.content-section a {
  color: var(--primary);

  font-weight: 600;

  transition:
    color 0.2s ease;
}

.content-section a:hover {
  color: var(--primary-dark);

  text-decoration: underline;
}


/* =========================================================
   STRONG TEXT
   ========================================================= */

.content-section strong {
  color: var(--dark);
}


/* =========================================================
   FEATURES GRID
   ========================================================= */

.features-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;

  margin: 25px 0 38px;
}


/* =========================================================
   FEATURE CARD
   ========================================================= */

.feature-card {
  padding: 25px 22px;

  border:
    1px solid var(--border);

  border-radius: 16px;

  background: #ffffff;

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);

  border-color: #d8d6ff;

  box-shadow: var(--shadow);
}


/* =========================================================
   FEATURE ICON
   ========================================================= */

.feature-icon {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 17px;

  border-radius: 13px;

  background: #f1f0ff;

  color: var(--primary);

  font-size: 20px;

  font-weight: 800;
}


/* =========================================================
   FEATURE CARD TEXT
   ========================================================= */

.feature-card h3 {
  margin-bottom: 7px;

  color: var(--dark);

  font-size: 17px;
}

.feature-card p {
  margin-bottom: 0;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.7;
}


/* =========================================================
   INFO PAGE
   ========================================================= */

.info-page {
  padding: 80px 0;

  background: #f8fafc;
}

.info-container {
  max-width: 900px;

  margin-inline: auto;

  padding: 42px;

  border:
    1px solid var(--border);

  border-radius: 22px;

  background: white;

  box-shadow: var(--shadow);
}

.info-container h1 {
  margin-bottom: 25px;

  color: var(--dark);

  font-size: 42px;

  line-height: 1.15;
}

.info-container h2 {
  margin-top: 35px;

  margin-bottom: 10px;

  color: var(--dark);

  font-size: 25px;
}

.info-container p {
  margin-bottom: 14px;

  color: var(--muted);

  font-size: 15px;

  line-height: 1.8;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  padding: 70px 0 25px;

  background: #111827;

  color: white;
}

.footer-grid {
  display: grid;

  grid-template-columns:
    1.5fr
    1fr
    1fr
    1fr;

  gap: 45px;
}

.footer .logo {
  color: white;
}

.footer-brand p {
  max-width: 310px;

  margin-top: 16px;

  color: #9ca3af;

  font-size: 13px;

  line-height: 1.7;
}

.footer-column {
  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 10px;
}

.footer-column h3 {
  margin-bottom: 7px;

  color: white;

  font-size: 14px;
}

.footer-column a {
  position: relative;

  color: #9ca3af;

  font-size: 13px;

  transition:
    color 0.2s ease;
}

.footer-column a:hover {
  color: white;
}


/* Footer underline */

.footer-column a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -3px;

  width: 100%;
  height: 1px;

  background: white;

  transform: scaleX(0);

  transform-origin: left;

  transition:
    transform 0.2s ease;
}

.footer-column a:hover::after {
  transform: scaleX(1);
}


/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-top: 55px;

  padding-top: 22px;

  border-top:
    1px solid #293241;

  color: #8b95a5;

  font-size: 12px;
}


/* =========================================================
   CONTACT / EMAIL
   ========================================================= */

.email-link {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  color: var(--primary);

  font-weight: 700;
}

.email-link:hover {
  color: var(--primary-dark);
}


/* =========================================================
   SMALL HIGHLIGHT BOX
   ========================================================= */

.info-box {
  margin: 25px 0;

  padding: 20px 22px;

  border:
    1px solid #dddffb;

  border-left:
    4px solid var(--primary);

  border-radius: 12px;

  background: #f8f7ff;
}

.info-box p {
  margin-bottom: 0;

  color: #596273;
}


/* =========================================================
   TABLE
   ========================================================= */

.content-section table {
  width: 100%;

  margin: 25px 0;

  border-collapse: collapse;

  overflow: hidden;

  border:
    1px solid var(--border);

  border-radius: 12px;
}

.content-section th,
.content-section td {
  padding: 13px 15px;

  border-bottom:
    1px solid var(--border);

  text-align: left;

  font-size: 14px;
}

.content-section th {
  color: var(--dark);

  background: #f8fafc;

  font-weight: 700;
}

.content-section td {
  color: var(--muted);
}

.content-section tr:last-child td {
  border-bottom: 0;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1000px) {

  .nav-menu {
    gap: 18px;
  }

  .features-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 760px) {

  .container {
    width: min(
      calc(100% - 28px),
      var(--container)
    );
  }


  /* Header */

  .navbar {
    min-height: 68px;
  }

  .nav-menu {
    display: none;
  }

  .nav-button {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }


  /* Page hero */

  .tool-page {
    padding: 55px 0 65px;
  }

  .tool-page-header {
    margin-bottom: 25px;
  }

  .tool-page-icon {
    width: 62px;
    height: 62px;

    margin-bottom: 17px;

    border-radius: 17px;

    font-size: 27px;
  }

  .tool-page-header h1 {
    font-size: 36px;

    letter-spacing: -1px;
  }

  .tool-page-header p {
    font-size: 14px;
  }


  /* Content */

  .content-section {
    padding: 50px 0 65px;
  }

  .content-section .container {
    padding: 25px 20px;

    border-radius: 17px;
  }

  .content-section h2 {
    font-size: 23px;

    margin-top: 32px;
  }

  .content-section p {
    font-size: 14px;

    line-height: 1.75;
  }


  /* Features */

  .features-grid {
    grid-template-columns: 1fr;

    gap: 14px;

    margin-top: 20px;
  }

  .feature-card {
    padding: 21px;
  }


  /* Footer */

  .footer {
    padding-top: 55px;
  }

  .footer-grid {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;

    align-items: flex-start;

    margin-top: 40px;
  }


  /* Table */

  .content-section table {
    display: block;

    overflow-x: auto;

    white-space: nowrap;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

  .logo {
    font-size: 19px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .tool-page-header h1 {
    font-size: 32px;
  }

  .content-section .container {
    padding: 22px 17px;
  }

  .content-section h2 {
    font-size: 21px;
  }

  .content-section p {
    font-size: 13.5px;
  }

  .feature-card h3 {
    font-size: 16px;
  }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.nav-menu a:focus-visible,
.nav-button:focus-visible,
.mobile-menu-btn:focus-visible,
.footer-column a:focus-visible,
.content-section a:focus-visible {
  outline: 3px solid rgba(99, 91, 255, 0.25);

  outline-offset: 4px;

  border-radius: 4px;
}


/* =========================================================
   SELECTION
   ========================================================= */

::selection {
  color: white;

  background: var(--primary);
}