/* ==========================================================================
   AI Car Design
   Shared stylesheet for the AI Car Design legal pages.
   Based on the DeepSearch site stylesheet.
   ========================================================================== */

:root {
  /* Color palette (taken from the printed DeepSearch pages) */
  --teal:         #216e93;   /* page titles */
  --heading-blue: #234b72;   /* Privacy Policy section headings / app title */
  --body-color:   #202020;   /* body text */
  --callout:      #333333;   /* gray callout paragraphs */
  --callout-line: #cfcfcf;   /* callout border lines */
  --table-line:   #cccccc;   /* table row borders */
  --link-blue:    #0000cc;   /* table links (blue) */
  --teal-link:    #006580;   /* Info page links / email */
  --brand:        #333333;   /* header wordmark */
  --nav-active:   #2e2e2e;   /* active tab */
  --nav-inactive: #5c5c5c;   /* inactive tabs */

  /* Font stacks */
  --font-header: "Lato", "Liberation Sans", "Segoe UI", Arial, Helvetica, sans-serif;
  --font-body:   "Liberation Sans", "Lato", "Segoe UI", Arial, Helvetica, sans-serif;

  /* Shared typography scale */
  --page-title-size: clamp(2.2rem, 3.1vw, 2.9rem);
  --section-title-size: 1.5rem;
  --subsection-title-size: 1.3rem;
  --app-title-size: 1.5rem;
  --updated-size: 0.6rem;
  --body-size: 1rem;
  --body-large: 1.0625rem;
  --small-size: 0.9375rem;
  --section-gap: 1.5rem;
  --paragraph-gap: 1.125rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body-color);
  background-color: #ffffff;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  padding: 24px 0 64px;
}

main.container {
  padding-bottom: 96px;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  background: #ffffff;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  font-family: var(--font-header);
  font-size: 22px;
  font-weight: 300;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav a {
  font-family: var(--font-header);
  font-size: 17px;
  text-decoration: none;
  padding: 6px 14px;
  color: var(--nav-inactive);
  font-weight: 300;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--nav-active);
}

.site-nav a.active {
  color: var(--nav-active);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Page title
   -------------------------------------------------------------------------- */

.page-title {
  font-family: var(--font-header);
  font-size: var(--page-title-size);
  font-weight: 700;
  color: var(--teal);
  text-align: center;
  margin: 24px 0 28px;
}

.page-title.page-title-left {
  text-align: left;
}

/* --------------------------------------------------------------------------
   Privacy Policy – app title block
   -------------------------------------------------------------------------- */

.app-title {
  font-family: var(--font-body);
  font-size: var(--app-title-size);
  font-weight: 700;
  color: var(--heading-blue);
  text-align: left;
  line-height: 1.2;
  margin: 0 0 4px;
}

.app-updated {
  font-family: var(--font-body);
  font-size: var(--updated-size);
  font-weight: 700;
  color: #000000;
  margin: 0 0 20px;
}

/* --------------------------------------------------------------------------
   Headings
   -------------------------------------------------------------------------- */

h2 {
  font-family: var(--font-body);
  font-size: var(--section-title-size);
  font-weight: 700;
  color: var(--heading-blue);
  margin: 34px 0 1px;
}

h3 {
  font-family: var(--font-body);
  font-size: var(--subsection-title-size);
  font-weight: 700;
  color: var(--heading-blue);
  margin: 28px 0 14px;
}

p {
  margin: 0 0 var(--paragraph-gap);
}

/* --------------------------------------------------------------------------
   Privacy Policy page
   -------------------------------------------------------------------------- */

.privacy-policy p {
  font-size: var(--body-large);
}

.privacy-policy .intro {
  font-size: var(--body-size);
}

.callout {
  color: var(--callout);
  font-size: var(--small-size);
  border-top: 1px solid var(--callout-line);
  margin: 22px 0;
}

.callout:last-of-type {
  margin-bottom: 20px;
}

.def-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.def-list li {
  padding-left: 22px;
  margin-bottom: 28px;
}

.def-list li > p {
  margin: 0 0 14px;
}

.def-label {
  font-size: var(--body-large);
  font-weight: 600;
  color: #000000;
}

.pp-subhead {
  font-size: var(--body-large);
  font-weight: 700;
  color: #000000;
  margin: 0 0 16px;
}

.provider-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: var(--body-size);
}

.provider-table th,
.provider-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--table-line);
}

/* --------------------------------------------------------------------------
   Terms & Conditions page
   -------------------------------------------------------------------------- */

.tnc h2,
.tnc h3 {
  font-family: var(--font-header);
  font-size: var(--section-title-size);
  font-weight: 700;
  color: #000000;
  margin: 28px 0 12px;
}

.tnc h3 {
  font-size: var(--subsection-title-size);
}

.tnc-title {
  font-family: var(--font-header);
  font-size: var(--section-title-size);
  font-weight: 700;
  color: var(--heading-blue);
  text-align: left;
  margin: 0 0 16px;
}

.tnc-notice {
  color: #030809;
}

/* --------------------------------------------------------------------------
   Subscription Info page
   -------------------------------------------------------------------------- */

.info-heading {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  color: #202020;
  margin: 18px 0 14px;
}

.info-bullets {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.info-bullets li {
  font-size: var(--body-size);
  color: #202020;
  margin-bottom: 12px;
}

.info-steps-intro {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  color: #616161;
  margin: 22px 0 10px;
}

.info-steps {
  padding-left: 29px;
  margin: 0 0 22px;
}

.info-step {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  color: #616161;
  margin: 0 0 10px;
}

.info-step-num {
  font-size: var(--body-size);
  color: #202020;
}

.info-link-label {
  font-size: var(--body-size);
  color: #202020;
  margin: 18px 0 0;
}

.info-link {
  margin: 0;
}

.info-link a {
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--teal-link);
  text-decoration: none;
}

.info-contact {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  color: #616161;
  margin: 22px 0 0;
}

.info-contact a {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--teal-link);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Shared inline links
   -------------------------------------------------------------------------- */

a {
  color: var(--heading-blue);
}

a:hover {
  text-decoration: underline;
}

.email-link {
  text-decoration: none;
}

.email-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .site-header .container {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    padding-top: 4px;
  }

  .site-nav a {
    font-size: 15px;
    padding: 8px 10px;
  }

  .page-title {
    font-size: 30px;
    margin: 24px 0 20px;
  }

  .app-title {
    font-size: 50px;
  }


  .tnc-title {
    font-size: 30px;
  }

  main.container {
    padding: 16px 16px 40px;
  }

  .provider-table {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .page-title {
    font-size: 28px;
  }

  .site-nav a {
    font-size: 14px;
    padding: 8px 8px;
  }
}