/*
Theme Name: 	BuddyBoss Child
Theme URI: 		https://www.buddyboss.com/
Description: 	A child theme of BuddyBoss Theme. To ensure easy updates, make your own edits in this theme.
Author: 		BuddyBoss.com
Author URI: 	https://www.buddyboss.com/
License: 		GNU General Public License v3 or later
License URI: 	http://www.gnu.org/licenses/gpl-3.0.html
Template: 		buddyboss-theme
Version: 		1.0.0
*/

/*

-- Stylesheet locations --

Add your own customizations into /css/custom.css in this child theme.

Parent styles are called from /buddyboss-theme/inc/theme/functions.php in the
parent theme and are located in /buddyboss-theme/assets/css/ in the parent theme.


--- If you are editing CSS via the WordPress admin, do the following ---

1. Install the plugin WP Editor: http://wordpress.org/plugins/wp-editor/
2. Navigate to Appearance > Theme Editor in the WordPress admin.
3. Navigate into the /css/ folder of your child theme to edit custom.css.

*/

.primary-menu > li > a, .user-wrap.menu-item-has-children #header-my-account-menu a {
  color: black;
  font-size: 16px;
}

.primary-menu > li > a, .user-wrap.menu-item-has-children #header-my-account-menu a, .site-header #primary-navbar .primary-menu .menu-item > .ab-submenu .bb-sub-menu .menu-item a {
  color: black;
  font-family: "sofia-pro-soft", Sans-serif;
  font-size: 16px;
}

.user-wrap.menu-item-has-children .user-name {
  font-family: "sofia-pro-soft", Sans-serif;
  font-size: 16px;
}

.side-panel-menu a {
  overflow: visible;
  font-family: "sofia-pro-soft", Sans-serif;
}

[data-balloon]:after {
  font-family: 'sofia-pro-soft';
}

.primary-menu > .menu-item-has-children:not(.hideshow):after {
  font-size: 24px;
  margin-top: 2px;
}

.primary-menu > li > a, .primary-menu > li > a > i, .site-header #header-aside i, .bb-header-buttons a.button.outline, .primary-menu > .menu-item-has-children:not(.hideshow):after, .site-header .hideshow .more-button > i, .site-header i, .site-header .notification-dropdown i, .site-header .header-search-wrap i, .user-wrap.menu-item-has-children #header-my-account-menu a {
  color: black;
}

.buddypanel ul.buddypanel-menu li a span:not(.count) {
  overflow: visible;
}

/* Het thema-grid heeft -10px marge en Elementor 10px padding: samen 0px
   ruimte aan de zijkant en 10px horizontaal scrollen op mobiel. */
.site-content-grid:has(.es-legal) {
  margin-left: 0;
  margin-right: 0;
}

.es-legal {
  --es-blue: #002182;
  --es-blue-deep: #001654;
  --es-pink: #ff8cd9;
  --es-pink-soft: #ffe5f7;
  --es-card: #ffffff;
  --es-line: #dfe4f6;
  --es-line-soft: #eef1fb;
  --es-ink: #002182;
  --es-ink-muted: #595f89;

  box-sizing: border-box;
  max-width: 46rem;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  margin-top: 2rem !important;
  color: var(--es-ink);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word; /* lange e-mailadressen en links breken af */
}

/* ---------- Koppen ---------- */

/* Zonder eigen regel gaf het thema 60px met 45px regelhoogte, waardoor twee
   regels over elkaar liepen op mobiel. */
.es-legal h1 {
  margin: 0 0 0.75rem;
  color: var(--es-blue);
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  hyphens: auto;
}

.es-legal h2 {
  margin: 3rem 0 0.75rem;
  color: var(--es-blue);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.3;
}

.es-legal h2:first-child {
  margin-top: 0;
}

.es-legal h3 {
  margin: 0 0 0.6rem;
  color: var(--es-blue);
  font-size: 1.05rem;
  line-height: 1.35;
}

/* ---------- Tekst ---------- */

.es-legal p {
  margin: 0 0 1rem;
}

.es-legal a {
  color: var(--es-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.es-legal a:hover {
  color: var(--es-blue-deep);
}

.es-legal strong {
  font-weight: 600;
}

.es-legal code {
  padding: 0.1em 0.25em;
  border-radius: 4px;
  background: var(--es-line-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}

.es-legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}

/* Genummerde stappen, bijvoorbeeld de verwijderroute in de app */
.es-legal ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  list-style: decimal;
}

.es-legal li {
  margin-bottom: 0.45rem;
}

.es-legal-updated {
  margin-bottom: 2rem;
  color: var(--es-ink-muted);
  font-size: 0.9rem;
}

.es-legal-lead {
  font-size: 1.05rem;
}

/* ---------- Tabellen ----------
   De wrapper laat brede tabellen op mobiel horizontaal scrollen in plaats van
   de pagina zelf te laten uitrekken. */

.es-legal-table {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--es-line);
  border-radius: 12px;
  background: var(--es-card);
  -webkit-overflow-scrolling: touch;
}

.es-legal table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.es-legal thead th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--es-line);
  background: var(--es-line-soft);
  color: var(--es-blue);
  font-weight: 600;
  text-align: left;
  vertical-align: top;
}

.es-legal tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--es-line);
  vertical-align: top;
}

.es-legal tbody tr:last-child td {
  border-bottom: 0;
}

.es-legal tbody td:first-child {
  font-weight: 600;
  white-space: normal;
}

/* ---------- Blokken ---------- */

/* Uitgelicht blok, bijvoorbeeld de encryptie-uitleg op de subverwerkerspagina */
.es-legal-highlight {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--es-pink);
  border-radius: 12px;
  background: var(--es-pink-soft);
}

.es-legal-highlight p:last-child {
  margin-bottom: 0;
}

/* Kaart per leverancier */
.es-legal-vendor {
  margin: 0 0 1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--es-line);
  border-radius: 16px;
  background: var(--es-card);
  box-shadow: 0 6px 16px rgba(11, 28, 63, 0.04);
}

.es-legal-vendor p:last-child {
  margin-bottom: 0;
}

.es-legal-label {
  color: var(--es-ink-muted);
  font-weight: 600;
}

/* Regel met bedrijfsnaam en regio onder een leverancierskop */
.es-legal-meta {
  margin-top: -0.25rem;
  margin-bottom: 0.9rem;
  color: var(--es-ink-muted);
  font-size: 0.875rem;
}

.es-legal-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--es-line);
  color: var(--es-ink-muted);
  font-size: 0.875rem;
}

/* ---------- Mobiel ---------- */

@media (max-width: 767px) {
  .es-legal {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (max-width: 600px) {
  .es-legal-highlight,
  .es-legal-vendor {
    padding: 1rem 1.1rem;
  }

  .es-legal thead th,
  .es-legal tbody td {
    padding: 0.65rem 0.8rem;
  }
}