/* Legal pages (mentions-legales/, politique-de-confidentialite/, politique-cookies/, conditions-utilisation/) -> a simple reading
   layout, adapted from the Fontannaz Consulting project (sass/pages/_legal.scss), in the colors of this website (navy #00205b, red
   #e7194f) and px. These pages do not load the theme and Elementor stylesheets: everything is under .legal-page, with the fonts of the
   theme hosted with the site (the same declarations as at the top of custom.css: Encode Sans for the headings, Open Sans for the texts) */
@font-face {
  font-family: "Encode Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/encode-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Encode Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/encode-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #f7f7f7;
}

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f7f7f7;
  color: #444444;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* header bar: the SCUDERI / RENOVATION SARL logo (white images of the footer) back to the home page, and a "Retour au site" link */
.legal-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px;
  background-color: #00205b;
}

.legal-page__header a {
  color: #f2f2f2;
  font-family: "Encode Sans", sans-serif;
  font-size: 15px;
  text-decoration: none;
}

.legal-page__header a:hover,
.legal-page__header a:focus-visible {
  text-decoration: underline;
}

.legal-page__home {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.legal-page__home img {
  display: block;
  width: 159px;
  height: auto;
}

.legal-page__content {
  flex: 1 0 auto;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  padding: 50px 20px 60px 20px;
}

.legal-page__content h1 {
  margin: 0 0 5px 0;
  font-family: "Encode Sans", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #00205b;
}

.legal-page__content h2 {
  margin: 40px 0 10px 0;
  font-family: "Encode Sans", sans-serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  color: #00205b;
}

.legal-page__content h3 {
  margin: 25px 0 8px 0;
  font-family: "Encode Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #00205b;
}

.legal-page__content p,
.legal-page__content li {
  font-size: 16px;
}

.legal-page__content p {
  margin: 0 0 14px 0;
}

.legal-page__content ul {
  margin: 0 0 14px 0;
  padding-left: 22px;
}

.legal-page__content li {
  list-style: disc;
  margin-bottom: 4px;
}

.legal-page__content a {
  color: #e7194f; /* theme red */
  text-decoration: underline;
}

.legal-page__content table {
  width: 100%;
  margin: 10px 0 20px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-page__content th,
.legal-page__content td {
  padding: 8px 10px;
  border: 1px solid #cccccc;
  text-align: left;
  vertical-align: top;
}

.legal-page__content th {
  background-color: #e8ecf2;
  color: #00205b;
}

.legal-page__updated {
  color: #777777;
  font-size: 14px;
}

/* placeholders still to complete (hosting provider...) */
.legal-page__todo {
  background-color: #fff3cd;
}

.legal-page__footer {
  padding: 20px;
  background-color: #00205b;
  text-align: center;
}

/* legal pages and cookie settings links (same list as in the footer of the website) */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  font-size: 13px;
}

.footer-legal a {
  color: rgba(242, 242, 242, 0.9);
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

/* phones: smaller titles, tables scroll sideways instead of overflowing the page */
@media (max-width: 480px) {
  .legal-page__content {
    padding-top: 30px;
  }

  .legal-page__content h1 {
    font-size: 28px;
  }

  .legal-page__content table {
    display: block;
    overflow-x: auto;
  }

  .legal-page__home img {
    width: 120px;
  }
}
